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...
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 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...
I see that it's almost standard today to use JWT for modern applications, where the API and the front-end are totally separated, and served from a different server.   I know that browsers will not send cookies to different domains by default, but...
Basically, there is this open question about how to prevent a user from accessing their home page, after having hit the back arrow using node js/express-sessions...   The best way to prevent this was discussed in this post:  https://stackoverflow.com...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.