Switched to a cookie session
Fixed minor bug where logging this.port was undefined