Pull the TSocket information into protected if
Add random number to session ID to protect temporal reuse of sockets on client