Yesterday, I tried to make a website, using Node.js and the framework Express.js. On this website, the user needs to log, with credentials, who are checked in database. If the credentials are correct, I want to save the user's informations in a s...
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...
I'm dealing with an app that uses express-session in a node.js app. https://github.com/expressjs/session  Session durations are being set with the maxAge property.  According to the documentation for maxAge:     Alternatively req.session.cookie.m...
I am running two app instances on DigitalOcean. One is on example.com and the other is at beta.example.com I'm using mongostore with express-session and each site has a separate mongo database. I would not like for a user to be able to  log into...
My API uses express-session and authenticates any request based on the presence of the req.session.user object, as shown below:  app.use(function(req, res, next) {   if (req.session.user) {     console.log('Authenticated request\n');     next...
I am trying to make a third party application meaning it will run across multiple domains. I want to handle a session per user that uses the app, therefore, I used the express-session module to make it but every time I make a request it starts up a n...
I have a route written in Express as the following:  app.get("/route", function(req, res){     if (someBoolean){         someFunction(stuff, function(user){             ...             req.session.user = user;         });      }     res.rende...
I am trying to decode a cookie (with no success) that looks like the following: s%3Ak0tBm_lnBeH4G5pPIbbFKktQl0l4pNU8.d2ZbSvwFjkmVWfcS9Wn0%2Fi2oSnTYI09krfOOWJAXirE.  It was made using the express-session module.  I have tried doing something like this...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.