O
O
olezhenka2018-04-17 15:33:13
Node.js
olezhenka, 2018-04-17 15:33:13

Where does it store sessions on the passportJS client?

My Passport is set up flawlessly and everything works perfectly. The problem is that nginx is responsible for all content delivery, and the node is responsible only for the backend.
In my expectations, everything was so that all sorts of express-sessions save the session somewhere in the client's cookies and then give it to the node, but when successRedirect occurred, I did not see the session either in the cookies, or in the local storage, or in the session storage.
For any client, this session must be stored, otherwise what else could be the way to identify the user in the next request ???
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-04-17
@RidgeA

If the store for express-session was not explicitly connected, then it stores in the MemoryStore, which was not meant to work in production, which is clearly written in the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question