Skip to content
0:00 / 0:00

#express#redis#express-session

Sessions in Node #2 | Authentication in Node.js with Express and sessions | authentication in Node

Jan Goebel

13K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Jan Goebel
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

11K views6 years ago2 recommendations

Web developmentSecurityNode.js, Deno and BunWeb and application securityRedis and key-value stores

Jan Goebel demonstrates how to set up cookie and session-based authentication using Express and a Redis store.

🔥More exclusive content: productioncoder.com/you-decide-what-we-build-next Twitter: twitter.com/_jgoebel Blog: productioncoder.com Code: gist.github.com/productioncoder/3d2f27753b5a952f23383334a25c… Learn how to build a cookie and session-based authentication system with the Node express.js framework and the Redis in memory store. This video is part 2 of our series in which we start implementing our cookie-based authentication system with sessions. - running Redis locally - installing npm packages needed for Node.js session implementation - Setting up express session server - wiring up our server with our redis store with connect-redis - configuring Redis driver - configure express session middleware - session cookie settings - HttpOnly cookie setting - setting maximum age of the cookie

Why it's here

2 people recommend this

u/Arnab_Panditin r/node • Recommends

Sessions in Node #2 | Authentication in Node.js with Express and sessions | authentication in Node

u/prodcoderin r/node • Recommends

Sessions in Node #2 | Authentication in Node.js with Express and sessions | authentication in Node