improve code
session with socket.io works with 127.0.0.1 url