I think this is more useful

I used the method described here: http://www.danielbaulig.de/socket-ioexpress/
Now the session data is in a Session object and you should be able to modify the data from within socket.io.