How Sessions Work Together in PassportJS

I'm having trouble understanding the input stream and registration stream in PassportJS and ExpressJS. What I really wanted to do was check if different sessions are being created. So I opened the server and opened two windows as on the login pages. and then I log in and a session is created, but it is created only for the person who is in the last one, there is always one entry in my session table. Is this the expected behavior or is it wrong? How can I check this behavior in real time, that is, register 20 users and see 20 entries in the session table?

-one
session express
Dec 10 '15 at 17:31
source share
1 answer

it depends on how you process the sessions, most likely a cookie, in which case you may need to update your browser if this does not work. The cookie expiration date cannot be set correctly or you cannot deserialize properly. Read this for reference: https://scotch.io/tutorials/easy-node-authentication-setup-and-local

0
Dec 11 '15 at 15:48
source share



All Articles