Node and Express - Sessions

preview_player
Показать описание
Learn what sessions are, the express-session library, how sessions work with cookies to add persistence to an application, the difference between a session and a cookie, session security, what a session cookie is, and how to customize a session cookie.

🍪️ Video on Cookies 🍪️

Become a Better Developer

My Software

Download Code

⌛ Timestamps
0:00 – Introduction
0:15 – What is a Session?
0:23 – Why do we need Sessions?
0:45 – Cookies vs Sessions
1:07 – How do Sessions Work?
1:42 – express-session
2:08 – express-session and cookie-parser
2:59 – Registering express-session as Middleware
3:16 – What is a Session Secret?
4:06 – Session Secret Security
4:19 – Viewing Session in Chrome Application Tab
4:53 – Customizing t he Session Cookie
5:41 – Express Login Users with Session
8:33 – Deleting a Session
9:29 – Demonstrating Login with Session
10:59 - Outro
Рекомендации по теме
Комментарии
Автор

My God man. You are the only one who is explaining it so it makes sense. Thank you

alan-oqvk
Автор

Your explanation is amazing! Thank you. You got yourself another subscriber ❤

BigSmoke-rw
Автор

can you please make a video regarding using session in production environment

mix_mash
Автор

this is the clearest explanation iv seen yet, thank you so much for this youve got a follower!

yacoubabakar
Автор

Thanks for this! You clearly explained things well! I looked around for a while for this!

AdrianNadeau
Автор

I really like your teaching style, thank you for making such great videos!

xiaotutu
Автор

Love the detailed explanations. Please keep up the good work. A small suggestion I might have is to increase the recording volume by a bit. Your work was impressive enough that I subscribed instantly :)

cloudyreader
Автор

Nice! Thanks a lot. Your explanations are great, keep it up.

codebitcookie
Автор

you made it look really simple, thank you so much for your effort it s helping a lot

allaguiamira
Автор

Great video! highly appreciate the effort man.

Shivam-slsp
Автор

Thanks bro for this informative tutorial 🙏

Dev_Jet
Автор

I would love to know - you're basically using saveUninitialized: true - which saves sessions for unlogged users, how'd you deal with that feature off?

memoryleakerz
Автор

thank you for explaining this. keep up.

rafi_
Автор

Looks like this was the last video of the series, what about error handling though? I am getting stuck with exactly how to do error handling although the middleware section did help a lot, not sure how to go about error handling middleware, Error vs custom error, how to throw without crashing backend, like throw but it does a res.status, architecture, etc

SuhweeSoftware
Автор

Does express-sessions also store these sessions or i saw that people say it needs a storage like redis?

arielkashani
Автор

Why we need cookie inside create method when we are not using any cookie?

codeandtalk
Автор

you are robot? i pround of your typing bro

pozzleng
Автор

incorrect. sessions can store in browser too, even in JWT payload,

korkut