Fixes authentication with express session cookies on socketIO.