Fixed sessions in socket.