{"action":"created","issue":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/543","labels_url":"https://api.github.com/repos/socketstream/socketstream/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/socketstream/socketstream/issues/543/comments","events_url":"https://api.github.com/repos/socketstream/socketstream/issues/543/events","html_url":"https://github.com/socketstream/socketstream/issues/543","id":75617637,"number":543,"title":"Session sharing between Websockets and HTTP","user":{"login":"hulmgulm","id":12165268,"avatar_url":"https://avatars.githubusercontent.com/u/12165268?v=3","gravatar_id":"","url":"https://api.github.com/users/hulmgulm","html_url":"https://github.com/hulmgulm","followers_url":"https://api.github.com/users/hulmgulm/followers","following_url":"https://api.github.com/users/hulmgulm/following{/other_user}","gists_url":"https://api.github.com/users/hulmgulm/gists{/gist_id}","starred_url":"https://api.github.com/users/hulmgulm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulmgulm/subscriptions","organizations_url":"https://api.github.com/users/hulmgulm/orgs","repos_url":"https://api.github.com/users/hulmgulm/repos","events_url":"https://api.github.com/users/hulmgulm/events{/privacy}","received_events_url":"https://api.github.com/users/hulmgulm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-05-12T14:14:29Z","updated_at":"2015-06-17T20:10:53Z","closed_at":"2015-05-19T12:37:30Z","body":"Hi,\r\n\r\nwe are sharing sessions between websocket and HTTP requests.\r\n\r\nWe see that in HTTP requests the connect.sid gets processed by cookie-parser and validated but during the websocket connection cookie-parser is not called.\r\n\r\nThe result is that the HTTP request sees a session ID like this:\r\n\r\nUlTp92sLseIuSepPWpJr6RLPOip-SdBI\r\n\r\nand the corresponding websocket session ID looks like this:\r\n\r\ns%3AUlTp92sLseIuSepPWpJr6RLPOip-SdBI.z6gbo9fzFjCewBMPeoH4jen1ZgZOG7A0FQ2ZyVvsJgQ\r\n\r\nThis leads to problems as they are two separate sessions in the session store.\r\n\r\nHow can we solve this problem?\r\n\r\nThank you,\r\n   Andreas"},"comment":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/comments/112932292","html_url":"https://github.com/socketstream/socketstream/issues/543#issuecomment-112932292","issue_url":"https://api.github.com/repos/socketstream/socketstream/issues/543","id":112932292,"user":{"login":"thepian","id":72638,"avatar_url":"https://avatars.githubusercontent.com/u/72638?v=3","gravatar_id":"","url":"https://api.github.com/users/thepian","html_url":"https://github.com/thepian","followers_url":"https://api.github.com/users/thepian/followers","following_url":"https://api.github.com/users/thepian/following{/other_user}","gists_url":"https://api.github.com/users/thepian/gists{/gist_id}","starred_url":"https://api.github.com/users/thepian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepian/subscriptions","organizations_url":"https://api.github.com/users/thepian/orgs","repos_url":"https://api.github.com/users/thepian/repos","events_url":"https://api.github.com/users/thepian/events{/privacy}","received_events_url":"https://api.github.com/users/thepian/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T20:10:53Z","updated_at":"2015-06-17T20:10:53Z","body":"@kulicuu Hmm, does this mean that you need to configure the session secret twice in the app ?\r\n\r\nAnd shouldn't the API be like for the client\r\n\r\n`ss.session.set({ .. });`"}}