oskosk / express-socket.io-session

Share a cookie-based express-session middleware with socket.io
https://www.npmjs.com/package/express-socket.io-session
MIT License
135 stars 14 forks source link

Remove cookies middleware #67

Open tiaod opened 5 years ago

tiaod commented 5 years ago

Note Since version 1.5.0, the cookie-parser middleware no longer needs to be used for this module to work. This module now directly reads and writes cookies on req/res. Using cookie-parser may result in issues if the secret is not the same between this module and cookie-parser.

See https://github.com/expressjs/session

knoxcard2 commented 5 years ago

It's amazing how many people who are still including require('cookie-parser') in their Express code, I see it every single day. lol

AlexandrHovsepyan commented 4 years ago

It's amazing how many people who are still including require('cookie-parser') in their Express code, I see it every single day. lol

Hey, It really is. But what I would like to know is how the process may be done via express-session. Do you know any ways of setting a cookie via an express-session, without cookie-parser.