Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
Can't view cookie in browser after setting session with express-session

I am setting the session in my express app with express-session

const session = require("express-session");

const sessionConfig = {
      secret: "secret",
      resave: false,
      saveUninitialized: true,
      cookie: {
        httpOnly: true,
        expires: Date.now() + 100 * 60 * 60 * 24 * 7,
        maxAge: 100 * 60 * 60 * 24 * 7,
      },
    };

app.use(session(sessionConfig));

And in my browser I can't see any 'connect.sid' cookie.

enter image description here

---

express version:

"express": "^4.17.1"

express-session version:

"express-session": "^1.17.2"

node version:

v14.17.6
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Solution #2

try using node v12.16.1

note-1: Node.js 12 will remain in support until April 2022

note-2: The current LTS is v16.13.0


Solution #1 (didn't work)

Try using last version of express:

"express": "^4.17.1"
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!