Your complete guide to understanding the express-session library

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 197

  • @sourabhkhandelwal689
    @sourabhkhandelwal689 4 ปีที่แล้ว +22

    This is one of the most under-rated TH-cam channels. Don't know why it has so low views and likes. Seriously, you have amazing content.

    • @evicoach
      @evicoach 2 ปีที่แล้ว +1

      I always come here when I want to understand something deeply, thanks for the good work @zach

  • @lscodeschool957
    @lscodeschool957 4 ปีที่แล้ว +46

    Hello @Zach, you have no idea how i much appreciate this tutorial. I have been searching thru all sorts of tutorials for a good understanding of how to persist user login and sessions and cookies and all that, but none could explain as simple and deep as you have.
    See, Zach, You have done, if not, the best tuts ever tuts on this topic. I will follow you throughout. kindly let me know which other ways i could reach you. thanks so much. I will recommend your channel to all my students. thanks so much

    • @SridTech
      @SridTech 4 ปีที่แล้ว +2

      I too cannot contain the excitement of watching this video.

    • @zachgoll
      @zachgoll  4 ปีที่แล้ว +7

      So glad you've found it helpful, and thanks for sharing! I created this one because I couldn't find it myself so I'm glad it is resonating.

    • @Konstantin19877
      @Konstantin19877 2 ปีที่แล้ว

      Best video ever. I wonder what happens to session data in Mongo when cookie expires, data gets deleted from db or I need to handle it? Clear outdated records?

  • @senti3ntb3ing96
    @senti3ntb3ing96 ปีที่แล้ว +4

    I've watched quite a few tutorials about sessions and express lately and I think that you do the best job of them all, very well explained and answers a lot of questions others skip over

  • @zachgoll
    @zachgoll  3 ปีที่แล้ว +2

    Comment below what you're using the express-session library for! Also, plz like the video :)

  • @mattpickel223
    @mattpickel223 ปีที่แล้ว +1

    Love this style where you break down what's going on behind the scenes instead of just showing implementation. Great video!

  • @gyrips4284
    @gyrips4284 3 ปีที่แล้ว +1

    Thanks so much man!
    I've been trying to learn passport.js for WEEKS and none of the courses worked AT ALL!!
    I really appreciate what you're doing here!

  • @bun_bun17
    @bun_bun17 ปีที่แล้ว

    Thank you so much, you are such a great teacher, you don't assume people to know little details but instead you tirelessly teach in details. How great! Good luck in everything you do!

  • @bn2005
    @bn2005 4 ปีที่แล้ว +1

    Cannot overstate how helpful this series has been.

  • @usmanshah5862
    @usmanshah5862 4 ปีที่แล้ว +3

    I will try to make the exact video playlist for the people of my region. This is such useful information...

  • @0thi123
    @0thi123 3 ปีที่แล้ว

    You have the best tutorial that explains what is going on in the background in understanding session

  • @juhandvan
    @juhandvan 4 ปีที่แล้ว +2

    I was so lucky to find your channel on TH-cam, it has lots of useful lessons for me. I really love this channel. Please make it more diverse.

  • @Rohinthas
    @Rohinthas 2 ปีที่แล้ว +1

    Just discovered this series. This cleared up so much confusion already, thanks a whole lot! I found it really helpful to see the live example in the browser and on the server side, now it makes sense!

  • @Miftah-Ul-Uloom
    @Miftah-Ul-Uloom 4 ปีที่แล้ว

    I am very thankful to you. From many days i have stuck in session, cookie, authorization stuff. You made my day. GOD Bless you.

  • @xianbalderrama
    @xianbalderrama 3 ปีที่แล้ว +1

    This channel will have MILLIONS of subscribers. I guarantee as soon as other fellow software engineers see your content, they'll absolutely hit that damn subscribe button immediately. Thank you for your hard work with these series!

    • @zachgoll
      @zachgoll  3 ปีที่แล้ว

      Thanks for the comment! Really appreciate it

  • @keninswed
    @keninswed 4 ปีที่แล้ว

    Must say you really did put in the time and effort to explain authentication and authorization, was totally lost without you and your efforts to enlighten me are highly appreciated. Found your blog too thank you.

  • @usmanmughal5916
    @usmanmughal5916 3 ปีที่แล้ว +1

    You are a real lifesaver. This is a million dollar video. Very under-rated and full of potential channel. All of your followers appreciate your efforts, but it's nothing compared to your hard work and detailed explained topics. Absolutely great video.

    • @zachgoll
      @zachgoll  3 ปีที่แล้ว +1

      Thank you!! 🙏

  • @armaandhanji2112
    @armaandhanji2112 4 ปีที่แล้ว +3

    Really love this series. Eagerly awaiting you to continue this series and upload the next video!

    • @zachgoll
      @zachgoll  4 ปีที่แล้ว +3

      Thanks!! Working hard to get them completed and posted pretty close to each other!

  • @k.ashutoshbaitharu3964
    @k.ashutoshbaitharu3964 ปีที่แล้ว

    This video tutorial is like finding a chest of gold for someone who is new to express and express-session!

  • @drakecoleman9364
    @drakecoleman9364 3 ปีที่แล้ว

    man this video has more substance than every youtube video. This is so so so so good man. I am so thankful to you. my 2nd time going through this video too. Its all making sense. Im pumped.

  • @utkarshdixit7480
    @utkarshdixit7480 8 หลายเดือนก่อน

    Thankyou so much for clearing my doubts and basics , love from India , wish you happiness and prosper in life

  • @roseahmed7741
    @roseahmed7741 3 ปีที่แล้ว

    From last two days i was trying to understand how cookies and session work,after watching your video my doubts are pretty much clear,Thank you so much man and keep up your good work.
    Love from India❤️👍

  • @hadighilas5153
    @hadighilas5153 3 ปีที่แล้ว

    Happy to discover your channel with this very well explained video !!!

  • @candidatesvoice8826
    @candidatesvoice8826 4 ปีที่แล้ว

    I used this with a combination of postgres-sql, connect-pg-simple, and it worked like a charm. Wonderful my man.

  • @digvijayyamagekar4300
    @digvijayyamagekar4300 2 ปีที่แล้ว +1

    very nice and elaborate explanation thank you very much.

  • @slowcoding
    @slowcoding ปีที่แล้ว

    Nothing but compliments. The best explanations for the topic! Thanks a ton!!!

  • @jakoon_the_manic
    @jakoon_the_manic 2 ปีที่แล้ว

    Dude you explain so well, thanks you so much for your tut, coming from theodinproject!

  • @andrewpratt3861
    @andrewpratt3861 2 ปีที่แล้ว +1

    Really well-explained. You did a great job giving full information about both concepts and implementation. Thanks for this one!

  • @ankitjena2507
    @ankitjena2507 4 ปีที่แล้ว +1

    Love it man. I have been having trouble understanding express-session for a long time. This was what I always needed

  • @padr3ko
    @padr3ko 4 ปีที่แล้ว +1

    Zach! GREAT VIDEO. Thank you for taking the time to put this together. You do a good job in explaining this topic. Please make more tutorials!

  • @tech3425
    @tech3425 ปีที่แล้ว

    It's nice to see how everything works under the hood, instead of blindly adding the Passport Js library.

  • @alexanderyounger
    @alexanderyounger 4 ปีที่แล้ว

    Fantastic tutorial. Thank you for being thorough and speaking slowly. I'll be checking out your other videos.

  • @rickfearn3663
    @rickfearn3663 3 ปีที่แล้ว

    Fascinating tutorial by one of the best educators on the web. Thanks, Zach.

  • @ThatGuyAnonymous
    @ThatGuyAnonymous 4 ปีที่แล้ว

    Time is flying by, this series is amazing

  • @usmanshah5862
    @usmanshah5862 4 ปีที่แล้ว +1

    I would teach myself with exactly your style. Love it...

  • @rocha_matheus
    @rocha_matheus ปีที่แล้ว

    great video! keep posting more tutorials! you are helping a lot of new devs! thanks!!

  • @Saurabh5989
    @Saurabh5989 4 ปีที่แล้ว

    Very calm and composed way to explain the basic concepts behind any topic :) Really liked it.

  • @dnguyendev
    @dnguyendev 4 ปีที่แล้ว

    Your way of explaining things is amazing! Subcribed!

  • @FacundoCastellano
    @FacundoCastellano 2 หลายเดือนก่อน

    Sos un grande!! mi ingles es basico pero tu explicacion es increible!!
    You are a genious!! my english is basic, but your explication is amaizing so I could understand all perfectly!

  • @oneplus1861
    @oneplus1861 4 ปีที่แล้ว +3

    Now it got to my brain 😭😢
    Thank you!

  • @icoffeebeen
    @icoffeebeen ปีที่แล้ว

    such a clear tutorial with so much attention to detail! thank you so much!! :)

  • @theOrdinaryDev
    @theOrdinaryDev 3 ปีที่แล้ว +2

    i set req.session.userID in my app.post("/login") route. inside that route, the req.session.userId is available ..... but when i try the same in a different route like app.get("/home"). It is undefined.
    PLS HELP...

  • @monikamohan2268
    @monikamohan2268 2 ปีที่แล้ว

    This is a really really good tutorial. You earned a subscriber!!!!

  • @SridTech
    @SridTech 4 ปีที่แล้ว

    Actually you should not hide the subscriber count. You are the most under-rated youtuber. Now I am gonna check your channel everytime I am stuck with something. Please make sure to add contents like this continuously. These 25 minutes gone like a breeze. Keep up the good work.

  • @kavita2491
    @kavita2491 2 ปีที่แล้ว

    Hello @Zach..You have simplified the things for us. Thank you. Very well explained. I appreciate your time and effort :)

  • @austinmusiku778
    @austinmusiku778 3 ปีที่แล้ว

    This was really good. Extremely rich in informative content

  • @NishaJakhar26
    @NishaJakhar26 4 ปีที่แล้ว

    Lovely Series. Really Awesome way of explaining things. Thank You Zach.

  • @zSatherz
    @zSatherz 3 ปีที่แล้ว

    Very well explained! Enjoyed watching this tutorial very much!

  • @giulianocarmona7250
    @giulianocarmona7250 4 ปีที่แล้ว

    awesome video lad, you help me up a lot, and now I have a good grasp about what im doing.

  • @namannarula2412
    @namannarula2412 3 ปีที่แล้ว

    Marvelous Sir, Thank you very much. I feel a lot more confident about express sessions.

    • @zachgoll
      @zachgoll  3 ปีที่แล้ว

      Awesome! Glad the video helped!

  • @jacktheripper-x6y
    @jacktheripper-x6y 4 ปีที่แล้ว +1

    The content is pretty good Zach. Keep going on :D. Thank you.

  • @ronidey7100
    @ronidey7100 4 ปีที่แล้ว

    Another awesome teacher on youtube

  • @karimk8551
    @karimk8551 4 ปีที่แล้ว

    Well done on the clear explanation. Nice one

  • @kunaljain0212
    @kunaljain0212 4 ปีที่แล้ว

    In love with your channel! This video is sooooo good :)

  • @arunkutz
    @arunkutz 3 ปีที่แล้ว

    Thank you for the Video. It was very elaborate and clear !!

  • @ritikpatel3286
    @ritikpatel3286 4 ปีที่แล้ว

    Love you man! This series is amazing.

  • @konstantinkuzmenko982
    @konstantinkuzmenko982 4 ปีที่แล้ว +1

    Zach Thank you very much for this Video , Helped me a lot!

  • @alyazan9594
    @alyazan9594 4 ปีที่แล้ว +1

    This was explained very well. Thank you.

  • @nantiyachomtee2998
    @nantiyachomtee2998 3 ปีที่แล้ว

    Amazing video series, thanks sir!

  • @jaydave791
    @jaydave791 4 ปีที่แล้ว

    Very nice tutorial especially the details you go into

  • @DarvinJ
    @DarvinJ 4 ปีที่แล้ว +1

    Thank you so much for the explanation! Perfect video.

  • @cmoney1928
    @cmoney1928 4 ปีที่แล้ว +4

    Exceptional content. This was explained very well. Thank you.

  • @chndraja
    @chndraja 4 ปีที่แล้ว

    @Zach, Thanks for this amazing series. 😀

  • @Ryan-ff2db
    @Ryan-ff2db 4 ปีที่แล้ว

    Everything I was looking for. Thanks

  • @XrVwxLF91Q
    @XrVwxLF91Q 3 ปีที่แล้ว

    Explained in details. Thank you!

  • @tungtran4019
    @tungtran4019 3 ปีที่แล้ว

    love your tutorials! thanks a lot

  • @merakli2022
    @merakli2022 3 ปีที่แล้ว

    Thank you very much for your efforts. Great tutorial.

  • @kumaratul7329
    @kumaratul7329 4 ปีที่แล้ว

    Thanks man for being normal! And just spreading the knowledge!!!

  • @Kevin-te7rr
    @Kevin-te7rr 4 ปีที่แล้ว

    best explanation on youtube👏👏

  • @felipepilon
    @felipepilon 4 ปีที่แล้ว

    Amazing videos!!! Thanks a lot Zach!

  • @TheMakeupmonika
    @TheMakeupmonika 4 ปีที่แล้ว

    Love your videos Zach !!!!

  • @SugizoYoshikiX
    @SugizoYoshikiX ปีที่แล้ว

    So express-session automatically generates session ID and attach that to set-cookie header? We don't need to manually code something like: resp.setHeader(set-cookie, [sessionID])?

  • @martindm6019
    @martindm6019 3 ปีที่แล้ว

    This tutorial is excellent!

  • @gorsargsyan8865
    @gorsargsyan8865 4 ปีที่แล้ว

    this is the best explanation of sessions,thk you!!!

  • @scottsmyth3251
    @scottsmyth3251 4 ปีที่แล้ว

    Thanks for these videos man, great stuff

  • @AtmaniChouaib
    @AtmaniChouaib 8 หลายเดือนก่อน

    thank you great explanation, made it super ez to understand

  • @siddhantraj5323
    @siddhantraj5323 3 ปีที่แล้ว

    Brother
    seriously"
    U nailed it

  • @alexandermarkin1200
    @alexandermarkin1200 3 ปีที่แล้ว

    I love you, man! You are a life saver!

  • @antaradas5866
    @antaradas5866 4 ปีที่แล้ว

    Very Good explanation for beginner like me

  • @revylyv5348
    @revylyv5348 3 ปีที่แล้ว

    Thank you, it was really helpful, Keep posting great contents like this.

  • @HarshitSharma-kk6yz
    @HarshitSharma-kk6yz 4 ปีที่แล้ว

    this tut.is actully good I really like this ..keep it up

  • @sagivalia5041
    @sagivalia5041 2 ปีที่แล้ว

    So if for example, I want to display the user's name after he logged in, I:
    1. Initialize the session as soon as he successfully logged in
    2. Saves the user's cookie.sid in the db along with his name
    3. Retrieve from the DB the name which corresponds to the request's cookie.sid
    Am I correct?

  • @fiendsgaming7589
    @fiendsgaming7589 4 ปีที่แล้ว

    best explanation ever! Thank You!

  • @MrFsudude
    @MrFsudude 4 ปีที่แล้ว

    This is really good content. Great explanations

  • @usama_khalid
    @usama_khalid 3 ปีที่แล้ว

    best video on this topic...

  • @discusstime
    @discusstime 2 ปีที่แล้ว

    Hello @Zach, I have a question about sessions. How can you create a session that has a frontend timer and if you reload the page its going straight down, without reloading the time

  • @EvaXdelo
    @EvaXdelo 4 ปีที่แล้ว

    your playlist most useful i have learn from it thank you and keep going

  • @brycegoh9399
    @brycegoh9399 4 ปีที่แล้ว

    Hey, I would like to clarify some doubts. If the maxAge is set to a timethen wouldn't the cookie be deleted by the browser even though there is user activity? Wouldn't that affect user experience? Is there some kind of best practice?

  • @SmokyBigSmoke
    @SmokyBigSmoke 4 ปีที่แล้ว

    This is exactly what i was looking for..tysm

  • @hos7012
    @hos7012 3 ปีที่แล้ว

    very high quality tutorial

  • @sidarjunful
    @sidarjunful 4 ปีที่แล้ว

    Does the sessions object in the database expires/drops, as it does in the client side? If it does drop/expire/delete in the database then the viewCount in the database also gets deleted.

  • @nickwoodward819
    @nickwoodward819 ปีที่แล้ว

    Is there much point adding properties to sessions if they're invalidated on logout or page close? Or can you have somesort of backup/soft delete table where you can revive old cookies?

  • @usmanshah5862
    @usmanshah5862 4 ปีที่แล้ว

    Zach, the cookie is not being written in response header but i can see it in the Atlas DB. Please reply, this is killing me. I've been looking to find the solution for 5 hours.

  • @codemind1822
    @codemind1822 3 ปีที่แล้ว

    I have an error like Property 'viewCount' does not exist on type 'Session & Partial'.

  • @manudeepherle1251
    @manudeepherle1251 4 ปีที่แล้ว

    This helped me a lot. Thanks!

  • @hoquang1386
    @hoquang1386 3 ปีที่แล้ว

    this is super useful. Thank you, sir.

  • @chidibede2417
    @chidibede2417 4 ปีที่แล้ว

    You are a lifesaver, Thank you!

  • @9gager87
    @9gager87 4 ปีที่แล้ว

    This was a great video, keep it up!

  • @codenx2
    @codenx2 4 ปีที่แล้ว

    Hello Zach, Have you tried express-session with flutter based native app. Because browser has cookies and it reads session cookie and authenticate automatically. How to achieve the same in case of native apps.

  • @lloyd_jvr9152
    @lloyd_jvr9152 4 ปีที่แล้ว

    Wow amazing ! Love this

  • @gabrielmachado5708
    @gabrielmachado5708 4 ปีที่แล้ว

    Great content, man.