Questions tagged [connect-mongo]

No instructions have been provided for utilizing this tag just yet!

Accessing a single Express app can result in the session being terminated in another app on the same server

On a single server machine, I have two Express 4.x applications running on different ports but sharing the same MongoDB instance. Each app uses its own database and session secret. When logging into either application A or B individually, everything works ...

The issue of "undefined is not a function" is arising when trying to use the session in NHibernate with a mongo store

In my MongoDB database, I have a collection named 'Sessions' within the 'SessionStore' to store session state. To manage sessions, I am using express-session. Below is the code snippet used to set up sessions: var session = requi ...

Exploring techniques for retrieving Express.js session cookies on the server-side prior to sending a response

Utilizing Express-session, Connect-mongo, and PassportJS on a Node server, I have implemented the following validation function: expressApp.post('/login', function(req, res, next) { passport.authenticate('login', function(err, user ...

Every time I open my browser, my Node.js web app creates a fresh session

Whenever I close all browser windows and reopen the web app, a new session is initiated, forcing me to re-authenticate each time. To give you an idea, my web application framework is <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfema ...