Inspired by How to share sessions with Socket.IO 1.x and Express 4.x? i implemented socket authentication in some "clean" way where is no need to use cookie-parser and to read cookies from headers, but few items remain unclear to me. Example...
I have an extremely small express app to illustrate a problem I'm having.  I'm using connect-redis as a session store on my express app. I'm having a problem simply connecting to it though. Simply printing out req.session.store results in...
I am in the middle of decoupling my frontend from my backend repo. In doing so I am hosting my server on a personal Raspberry Pi 3 on my home network. My frontend is hosted by Netlify. I have run into a problem where I am not able to set cookies on m...
I have a NodeJS Express app that uses express-session.  This works great, as long as session cookies are supported.  Unfortunately it also needs to work with a PhoneGap app that does not support cookies of any kind.  I am wondering: Is it possible to...
I'm trying to set up sessions in my node.js app. In order to do that I'm using the modules "express","express-session" and "express-mysql-session" to store them in a database on my server. My code works absolutely fine...
How can I tell when express creates a new session? I'm using a mongodb session store.  I'm having an issue with extra sessions being created, and want to narrow down on the problem by tracking which urls requests are triggering new sessions t...
UPDATE  I think it's worth mentioning I am running Angular CLI which runs on port 4200 and my server is running on port 8080. Could this be a problem? It's the only thing I can think of at the moment  When I make a call to my route '/auth...
Before I reload or move to another page, console.log(req.session) print exactly what I saved values but It's no longer. I tried req.session.save(), req.session.regenerate({..}) or used .save() and .reload() at the same time. I cannot understand w...
I am facing an issue with logout functionality of my application.  Problem  Calling req.session.destroy does not remove the session data from the Sessions MongoDB collection in Production only.  The request hits the server, logout method runs, no err...
I am building and react express app, I am not using server side rendering, where I am facing problem in session management in the client side   So problem. Is like this   I have express route /,   /login,  /logout,  /dashboard And I also have the sam...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.