How do server side authentication sessions work (express & cookies)

preview_player
Показать описание
A walkthrough on how server side authentication sessions work using cookies.

------------

Рекомендации по теме
Комментарии
Автор

I really like how you explained sessions without relying on "express-session" or any third-party library that abstracts the work done behind the scenes.
This helps beginners to adopt a nice and very simple mental model about what sessions are about.
Thank you so much!

aissa.bouguern
Автор

Cody, that was beautifully explained.
The note you added at the end about why JWT would be useful is a gem. Subscribed.

mossabDiae
Автор

TYSM man. I've been struggling trying to understand how sessions work with cookies

SkySentry
Автор

DUDE, this is how you explain something
Very well done, I just came from another video on the same topic, watched the whole thing and was still clueless.
Watched your video for like 3 minutes and had most of my questions answered, kept watching because of how well you explained.

Thank you, I'm subscribing.

Goofy
Автор

Thank you for the simple explanation. Helped me a lot.

Tip: res.clearCookie() does the same thing as res.set('Set-Cookie', `session=null`)

JoelGrayson
Автор

I learned today that you can use the 'public' and 'private' keywords in TypeScript constructor parameters to auto-assign them. You don't even need to list them as members. It just adds them to the instance automatically. This is completely unrelated btw. Just wanted to share.

meepk
Автор

exactly what I was looking for, appreciate such low level bare-bone session auth for understanding instead of just using some plugin which teaches no one anything!

devnarula
Автор

You sir deserve all the support, thank you so much, you pretty much saved me time. Great work

wjgzddb
Автор

Currently working same subject but with SQL database. Bit complicated and stressful. But your tutorial help a lot. Thanks ones again

cristianadejola
Автор

appreciate dumming down the complex concept

szgpocn
Автор

i know i'm late to this but as someone who is just getting round to backend stuff, this was very useful. Thank you

kosidinna_
Автор

Awesome stuff, Thank you Cody!!!
I have been using passport-local and figuring my way round. I highly recommend going through THIS BASIC overview before leaning on other modules\packages like passport-local and express-session.

marksheard
Автор

simple and thorough. Glad you didn't use all those fancy abstractions.

digvijaysingh
Автор

Thank you so much. I had a hard time understanding how jwt does what it does. It is so much clearer now.

mayor
Автор

Simple, helpful, and very instructive

raprincis
Автор

Love your content & input, thanks Cody!

GilP-BM
Автор

Nice tutorial
Looking forward to watch the next one.

bentheafrican
Автор

I love this explanation ! thanks Cody !

exe.mdnght
Автор

Great video, thanks so much! I am about to build something using remix-auth (which is my first ever auth implementation) and wasn't clear on the cookie / session relationship. Most of the things I found just by browsing the web were like, the session is stored on the server and the cookie is stored on the client... thanks, that helps me not at all. This video cleared it all up and I now have a working mental model.

mferino
Автор

just subscribe to your channel. you are really helping the junior Dev. Thanks so much

cristianadejola