express-session Questions
9
I typed npm start to run my program but this is the comment that U received in the terminal: express-session deprecated req.secret; provide secret option app.js:27:9. I don't understand how this is...
Allhallowmas asked 14/8, 2020 at 17:22
3
Solved
I'm using express js 4 together with express-session
and set maxAge to one hour. However if user continues accessing the website, the timeout should be extended otherwise the user will be logged ou...
Brinton asked 8/10, 2017 at 11:4
3
Solved
So I'm using express-session package to set cookie and session. It's also connected to my MongoDB store to store session. When user logs in, session gets stored in database just fine but there's no...
Quartermaster asked 1/11, 2020 at 0:29
3
I always get the same error when I try to run my site on localhost with apache and self-signed ssl certificate. I have no idea why this error appears.
This is my session persistence, I don't know i...
Maitund asked 23/4, 2018 at 17:41
8
Solved
I am getting error while trying to save session on mongodb. Here is my code..
const express = require("express");
const session = require("express-session");
const MongoStore = ...
Glum asked 26/2, 2021 at 15:27
5
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 corre...
Moonmoonbeam asked 25/3, 2018 at 12:55
5
Solved
I'm working on a Typescript project with npm packages. I want to add a property to the Express.Session interface.
example Class:
class User {
name: string;
email: string;
password: string;
}
...
Interracial asked 11/8, 2016 at 15:28
8
Solved
I need to know if my user is connected or not. For that I want to read the cookies that I set in the server side with express-session :
app.use(session({
secret: 'crypted key',
resave: false,
sa...
Hom asked 29/6, 2018 at 21:21
3
In a Chrome warning, it says:
Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
How do I do this correctly using express-session?...
Milstone asked 5/8, 2020 at 21:34
2
Solved
I have a React App making calls to an API in node.js/Express.
Frontend is deployed in Netlify (https), Backend deployed on Heroku (https).
My problem:
Everything working in dev environment (localh...
Nothingness asked 6/3, 2021 at 8:24
1
I have created a website in which I'm facing three issues:
My backend Express JS code:
index.js file
/* eslint-disable no-undef */
const express = require("express");
const cors = require...
Capablanca asked 5/8, 2022 at 17:1
4
Solved
I'm trying to build a typeScript project but it has an error and I do not know where it comes from and nothing has changed since last time.
node_modules/connect-mongo/src/types.d.ts:113:66 - error...
Euhemerize asked 15/11, 2020 at 13:47
2
I am facing the issue : on every request new sessionID is getting created. Can someone throw light at this ?
Versions I am using:
NODE VERSION: v6.10.3
NPM VERSION: 3.10.10
[email protected]...
Unsex asked 3/7, 2017 at 23:0
2
so what I want to do is to create a session and store it in redis.
I followed the API from this github repository https://github.com/tj/connect-redis.
But I am getting this error in the word client...
Shamrao asked 19/3, 2022 at 16:2
3
I'm using a passport local strategy that works well with express:
passport.use(localStrategy);
passport.serializeUser((user, done) => done(null, JSON.stringify(user)));
passport.deserializeUser...
Eight asked 28/11, 2017 at 8:12
6
Solved
I am newbie with the MEAN stack. I read the express-session github doc but there are some options which are unclear to me. Those options are saveUninitialized and resave.
Can anyone please explai...
Rosie asked 2/11, 2016 at 13:39
5
I'm developing a user login/register feature as part of a larger project and am working on localhost (apollo server and react apollo front-end). I'm using express-session for my sessions.
When sub...
Sorority asked 27/10, 2018 at 14:16
2
it sets the cookie if I run the server locally, but when it is hosted online :
If secure=false, sameSite: 'none' then I get the following error
Cookie “connect.sid” will be soon rejected because...
Desmond asked 12/7, 2020 at 14:9
4
The session of my nodejs app is expiring every time I refresh the page, after login. It does work fine if I visit different pages but as soon as I refresh the page, the session ends. I've tried a c...
Chape asked 26/8, 2017 at 8:15
2
Solved
Environment: Express, express-session, Stripe
In the following simplified example when a user requests the home page express-session assigns the user a session cookie. Refreshing the page retains t...
Aldebaran asked 8/9, 2020 at 19:40
8
When not using secure cookie true setting, my app user login works fine. When I enable secure cookies, the login appears to go through fine, but it seems the cookie is not saved and the user is not...
Accrete asked 18/5, 2017 at 5:13
3
Following this example in Nextjs repository, I want to implement the CSRF protection (perhaps with csurf package), because I'm using a session ID cookie with express-session.
I tried setting csurf...
Isoleucine asked 13/1, 2019 at 11:4
2
Solved
i am building a site that as two url ('/','/admin') session are conflicting
here is my app.js session code
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ e...
Mauromaurois asked 7/5, 2017 at 21:51
2
Solved
My Setup:
NodeJS Server (hosted on Heroku)
Progressive-Web-App (hosted on Firebase)
When I had the App and Server on my localhost everything worked fine. But since I host it on these platforms,...
Shad asked 17/12, 2018 at 10:45
3
Basically i'm doing redirect from a.example.com to www.example.com and i expect to be able to delete cookies on www.example.com (because cookie is created with .example.com as the cookie domain), b...
Pottage asked 20/8, 2015 at 9:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.