jeudi 2 avril 2015

Is it possible to get an express session by sessionID?

I have a NodeJS Express app that uses express-session. This works great, as long as session cookies are supported.


Unfortunately it also needs to work with a PhoneGap app that does not support cookies of any kind.


I am wondering: Is it possible to get an express session and access the data in that session, using the sessionID?


I am thinking I could append the sessionID as a querystring parameter for every request sent by the PhoneGap app like so:


http://ift.tt/1FnVY8I


But I don't know how to tell express to retrieve the session.


Aucun commentaire:

Enregistrer un commentaire