Gets session data for socket.io