Relative Content

Tag Archive for node.jsmongodbexpresssession-cookiesexpress-session

Session with MongoDB Store not persisting after redirect

I’m using express-session on the backend using MongoDB store. I can see the session is being stored in the db. Session variable holds the value until I redirect. After the redirect even tho the value is still there in db, each new request has session variable as null.