This is a simple example showing how to use Express sessions to authenticate Socket.io connections. This could probably be much better, and the login system is definitely not production ready.