javascript - How to share user session between websocket and http in sailsjs -
the story is, have 2 potocol in sails.js server, sails server api access, , api must logged-in access, websocket running on server.
in sails when login put user data in req.session.me, save user data in session, next time through http access can save data req.session.me. reference: http://sailsjs.com/documentation/concepts/sessions
the question saving data in user session req.session.me through http access server cannot req.session.me through websocket access server.
many thanks!
Comments
Post a Comment