Saving authentication in websocket session is propageted to global session. Issue #410, #464, #466.