fixed session for sockets