why logging into one nodejs application logs me out of another? Both are running on different ports and using passport for authentication and express-session
Asked
Active
Viewed 43 times
1 Answers
0
Every time you log on in one of your apps you get a cookie that is used to authenticate you with the server.
But Cookies are defined on hosts, no ports, so any cookie you set in any of your apps will rewrite the other one, logging you out of the first app.

Ander2
- 5,569
- 2
- 23
- 42