added support for sessions in socket.io