HTTP Cookies Crash Course

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

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

  • @vladyslavkarpenko9372
    @vladyslavkarpenko9372 2 ปีที่แล้ว +17

    Thank you Hussein🤝 Your one hour video is more valuable than a 100s of 5 min "I explain everything" kind of videos that flood the internet.

    • @hnasr
      @hnasr  2 ปีที่แล้ว +12

      Thank you ! While short videos are good to get an overview, they can’t cover the details of the topic which is often the most important thing to me I think

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

    Much thanks to this man, he explains the concept of cookies clearly than I ever heard before! I really appreciate your knowledge sharing!

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

    First of all I would like to thank you for sharing your knowledge. This is my first ever comment on you tube. I could not resist myself.
    I have been watching your videos for the last 1 week. I have watched more than 20 videos of yours.
    The most important thing that I liked in this channel is the way you explain theoretical subjects using examples.
    You are a great teacher and doing such a great job. Please keep doing so.

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

      Thank you so much for taking the time to leave a comment I really appreciate it ! 🙏 glad the content is helpful ❤️
      I will!

    • @HustlerNoss
      @HustlerNoss 11 หลายเดือนก่อน

      0:19

    • @HustlerNoss
      @HustlerNoss 11 หลายเดือนก่อน

      🎉a😂😁🥹😄😀😁🥰😀😄😅😙😉🎉😂😂😂té
      0:19

    • @HustlerNoss
      @HustlerNoss 11 หลายเดือนก่อน

      456790

    • @HustlerNoss
      @HustlerNoss 11 หลายเดือนก่อน

      0:19

  • @bobbycyy2462
    @bobbycyy2462 3 ปีที่แล้ว +6

    Hi Hussein, your videos and explanations are incredibly valuable and helpful. I am a year 3 cs undergrad and I find learning from you much more enjoyable than just sitting in the school lecture hall. Thank you for sharing your knowledge and putting in so much effort to make it engaging!

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

    I can not be so excited about cookies like this guy. So pleasant to hear you lection. Not boring at all! Perfect

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

    Today it's my birthday and I am watching this at 12am.I had a long weekend and I spent the entirety of it watching your videos..Got to learn so much.Keep it up man.

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

      Happy Birthday 🎊🎈🎂 Enjoy your day celebrate and have fun and have fun with the content. Keep learning ❤️

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

    This playlist is awesome. Thanks Hussein. Your way of explaining is good, since long talks help convey importance (weight) of parts of the topics. It's harder to do this with short content. relevance ftw

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

    Best explanation of cookies on TH-cam! You do such a great job explaining these things in a simple way and you are very entertaining to listen to.

  • @abishekbaiju1705
    @abishekbaiju1705 3 ปีที่แล้ว +24

    0:00 Intro
    4:15 Section 1 - Creating Cookies
    14:38 Section 2 - Cookie Properties
    44:00 Section 3 - Cookie Types
    1:02:00 Section 4 - Cookie Secuirty

  • @asadjivani4074
    @asadjivani4074 3 ปีที่แล้ว +9

    Probably the best explanation available for cookies on the internet, kudos to you!

  • @Rohitkumar-u1y6l
    @Rohitkumar-u1y6l 3 ปีที่แล้ว +3

    I've been following all your videos for quite some time and your the mentor that probably everyone needs. Great content as always.

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

    "If you treat life like you know everything, you will not learn anything because you will always be arrogant and think of yourself as being above others. But if you treat things like everything is a new opportunity to learn, always accept it, its pretty cool how much you can learn."
    Couldn't agree with you more there compadre. 😎

  • @pivotal-ai
    @pivotal-ai 4 ปีที่แล้ว +3

    Well done!
    I learned:
    An empty path defaults to /
    www.example.com is different than example.com (web server vs actual domain)
    Domain is set for subdomains by using .example.com syntax, the prefix dot species all subdomains
    Httponly makes so client scripts can't access the cookie.
    Third party cookies are those with SameSite=None, basically, can have cookie available across domains, good for ads or TH-cam widgets.
    Zombie cookies are cookies that don't die, once their cache policy expires, their ETag validation token will always be seen as valid and so a 304 Not Modified will always be returned. A deleted cookie will be quickly recreated.
    A cross site cookie can be exploited via cross site request forgery where the cookies are captured and sent to another domain via user accessing link on your site.

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

      Nice summary ! ☝️

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

    I don't know what the heck is with youtube, but this channel is over underrated

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

    Best video I have ever seen explaining a deep dive into the topic of cookies. Kudos to you Hussein.

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

    I'm sure you channel is the only way that someone can learn these advanced stuff for free .. thanks a lot for sharing you're knowledge

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

    Just finished the whole video... not boring at all! I only knew how to use Local Storage and Sessions but cookies are not so easy. Thanks again, now I feel very comfortable using cookies.

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

      Thanks! Glad you like it. Funny I didn’t know about localStorage when I made this video

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

    Awesome video. I was trying to find a way to tech new interns web development concepts without scaring them away by immediately asking them to read IETF RFEs. They'll probably curse me while trying to understand the ABNF syntax lol. Your content is awesome.

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

    Hussien, really appreciate your efforts in teachng us this vast and quite complicated subject. Great job!! The only thing i couldn't really grasp from your explanation was the third-party cookie section, but that's ONE thing in over an hour long video which taught me tons more than i ever knew about this subject, not just about what cookies are but about properties/attributes that help secure your site, Etags, CORS and a client side database that i knew absolutely nothing about! I cant wait to start reading up on that! Your mentions have caused me to google these things and have found good articles which go in depth about them. There we're times i got bit frustrated with your explanations (just being honest) but i would be extremely ungrateful if i never left a sincere comment to say thanks. It's hard to find in depth videos that walk you through this subject on yt, so actually ... Kudos to you 👏 and you've got a new sub 😉

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

    Your backend tutorial is far better than GOT 🐺
    Respect ++🙏

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

    Thanks Hussien you win the cookie challenge. Enjoyed every minute of the video keep them coming 🎉

  • @47shashank47
    @47shashank47 2 ปีที่แล้ว

    wow man for the last 10 days I am giving 1 hour to your videos. Your content is so amazing, really thanks a lot.

  • @ChiragRajputS
    @ChiragRajputS 5 ปีที่แล้ว +38

    This wasn't boring at all.. loved it broo. Thanks☺

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

      Chirag Rajput thank you so much for your comment really glad you liked it you made it until the end 😍

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

    Love the video and quality of the content, hope to see the "sessions" topic cover!

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

    your videos are not at all boring !!!! and we really want to learn

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

    Thanks for sharing this knowledge! Ive been watching your videos for the past week. Great job!

  • @JatiIID
    @JatiIID 8 หลายเดือนก่อน +1

    49:47 For those waiting for the third-party cookie part in this video (just like me,) here it is! :P
    55:28 Zombie Cookies. Another super interesting part in this video.

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

    Great job on this! Thank you so much. Your delivery is perfect pace, informative, and fun, and I found this video on mundane topic to be very helpful.

  • @prayasarora
    @prayasarora 5 ปีที่แล้ว +9

    Thank you so much sir , i have had seen so many videos but this is like the real deal , final station . Though it is a little slow but its great .

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

      Thanks Prayas! yeah I'm working on speeding up my pace and getting to the point quicker, thanks for your comment

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

    I love how passionate you are Hussein Thanks .

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

    I think the main point is that cookies are used for session management, personalization, and tracking. It helps to understand in what cases we need them

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

    These video have solved problems i had been struggling with for 2 days. Great job man

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

      Thanks Dawid! Glad I could help really appreciate you taking the time to comment ☺️

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

    Very unique and interesting style of teaching, thanks man.

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

    Hussein, really informative videos, First time hearing about indexeddb, etag.
    from India

  • @000maestro000
    @000maestro000 5 ปีที่แล้ว +3

    Great video ! no bs , to the point and technical, I was looking exactly for something like that.

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

      Dan Bomgard thanks Dan! Enjoy the content ☺️ let me know what can I make next.

  • @JatiIID
    @JatiIID 8 หลายเดือนก่อน +1

    32:28 I would say the life lesson in this video is the coolest part of this 1-hour video!!! :D

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

    Best explanation of cookies I seen so far on TH-cam Tanx a lot

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

    Hussein, you are awesome and the video content is great. Really thanks a lot.

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

    Man, what an awesome video, very well explained. Everything is so much clearer now, thank you so much.

  • @SohailKhan-cb9ls
    @SohailKhan-cb9ls 3 ปีที่แล้ว

    Thank you man. I didn't realize it was a 1hr video until you did mention in section 4 and I am writing this comment now. 😂

  • @ronidey7100
    @ronidey7100 5 ปีที่แล้ว +7

    Thank you sooo much man. I just signed in with three different accounts just to like this video😁😁😁

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

    This is pure gold. Simple, information dense and amazing 😍

  • @krishnakumar-rp9wc
    @krishnakumar-rp9wc 3 ปีที่แล้ว

    In love with your life lessons and talking

  • @rezaghasemzadeh9440
    @rezaghasemzadeh9440 5 หลายเดือนก่อน

    one of the best tutorials about cookies, thank you

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

    Way to go !! Your videos are very good with perfect examples and demo! Keep creating more videos!

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

      Appreciate it Manoj!! Thanks 😊

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

    By watching this vid, I became a better informed person - well done and thx!

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

    Thanks Hussein .... going over to etag and indexDB videos ...

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

    Wow. I was searching for this kind of explanation for ever. Thank you :)

  • @송예은-h7b
    @송예은-h7b 2 ปีที่แล้ว

    I love this video!! This is the best video about cookies that I ever saw=) I'm so happy to find this one and thank you that you put your time on this video!! Thanks

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

    Loved this! Thanks so much for your strong passion and dedication!

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

    Thank you sir for the great video. One question sir, what will happen when samesite flag is none. Means we haven't set any any to it.

  • @melanieburger6186
    @melanieburger6186 7 หลายเดือนก่อน

    Thanks for the video! The explanations and demos helped me a lot.

  • @erzloh
    @erzloh 3 หลายเดือนก่อน

    Thank you so much for these valuable videos man, it's so great!

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

    Wow wow wow what an excellent explanation! Thanks for all your effort!

  • @goodboy8833
    @goodboy8833 7 หลายเดือนก่อน

    Now it's good anna, bit recovered

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

    1:05:48 are you kidding me? no it WASN'T! make more of like this!

  • @hey.............
    @hey............. ปีที่แล้ว

    You are awesome man. Sharing all your knowledge for free.

  • @FahadKhan-qj3ej
    @FahadKhan-qj3ej 2 ปีที่แล้ว

    Thank you so much Hussein for content with such depth. It really helped me.

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

    both local storage and cookie are vulnerable with two different attacks. so for the security i want to generate jwt access token on each log in ,store the access token in local storage and the refresh token in cookie.

  • @РоманВоловик-з3д
    @РоманВоловик-з3д 4 ปีที่แล้ว +3

    Nice shot, man. Definitely 🖒. By the way, it was very easy to grasp the idea with your explanation 👏

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

    Even if i wont watch the whole video for some reason, youve got upvote for way ur speaking :)

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

      Mateusz Kubica made my day thanks buddy 😊 cheers

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

      Still watching and testing haha, cheers ✌🏻

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

    It's just outstanding. You deserve more views.

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

    Hussein, you tha man. Love your sense of humour

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

    A great work mate! greetings from argentina, thank you so much, I'm learning web development and sometimes i need find this kind of interactive foundament stuff.

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

    Awesome video man ! I am on binge of all your videos

  • @bihireboris3407
    @bihireboris3407 5 ปีที่แล้ว +5

    please do a video like that on PWA

  • @bihireboris3407
    @bihireboris3407 5 ปีที่แล้ว +7

    thanks a lot for the knowledge, definitely needed that

    • @hnasr
      @hnasr  5 ปีที่แล้ว

      bihire boris thank you for watching! PWA is on my agenda :)

  • @JuanMunoz-th3vn
    @JuanMunoz-th3vn 5 ปีที่แล้ว

    thanks Hussein for your videos, finally i could understand many concepts about cookies.

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

      Juan Muñoz thank you Juan! Glad I could help! Best of luck

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

    52:47 When u are setting the cookie that is intended to be a third-party cookie, shouldn't samesite attribute be equal to "none" (and secure attribute too)??

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

    The best video to understand cookies :D thanks a lot

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

    This was amazing. Thank you so much, Hussein!

  • @alexsh.8080
    @alexsh.8080 4 ปีที่แล้ว

    What an awesome man you are Hussein! Cheers from Russia

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

      Wow, thanks! greetings to all subs from Russia

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

    your channel is one of the best man.Useful content

    • @hnasr
      @hnasr  5 ปีที่แล้ว

      rakesh reddy thanks!!

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

    I love you man, thank you thank you thank you so much for creating this tutorial ♥️♥️♥️♥️♥️

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

    Great video.
    UPDATE
    When accessing domain, you don't need to say domain=.example anymore, you just need the root. domain=example.com
    javascript.info/cookie
    developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
    I tried it on example.com and this way works.
    Thanks for your video. I learned a lot.

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

      Thanks Mitchell for sharing this tip! Didn’t know that 🙏👍

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

    Done ✔️ thanks for knowledge 🙏

  • @kirillzlobin7135
    @kirillzlobin7135 10 หลายเดือนก่อน

    Thank you for sharing your knowledge

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

    What a perfect explanation. Thanks

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

    Can you please make a video for http request reponse header? Thanks.

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

    Yes I really wanna learn 😂...I watched the whole thing ❤️

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

    Great content. Made it till the end of the video . Thanks bro 😊.

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

    Amazing tutorial. Go on, you are the best.

  • @code-den
    @code-den 3 ปีที่แล้ว

    The best cookie video i've watched

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

    Jonny dep teaching web dev concepts😁

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

    thanks alot. I now know cookies very well

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

    After hearing "Cookies" for countless times now I wanna eat cookies

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

      Now I'm craving cookies too

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

    Thanks man excellent stuff. Subscribed

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

    You are Awesome. Great content 🎉🙌🏼

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

    really great video and informative

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

    Thanks for this clear explanation video!

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

    Thank you! Very clear explanation.

  • @Relax-ls1xi
    @Relax-ls1xi 3 ปีที่แล้ว

    King of sessions..

  • @prakashpotlapadu2493
    @prakashpotlapadu2493 3 หลายเดือนก่อน

    Thanks a lot. Awesome content!

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

    Man you are so engaging! Love it!

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

    Hello,
    Thankyou for the video. You solved the issue i was having for days. No where i was able to understand but now i know that i am not able to set cookie on my domain.
    I am currently using local host and the cookie is not getting set to is as i am using webapi to set cookie inside angular project. I tried adding the domain but it is not working.
    could there be anything wrong?
    Thanks a lot for the video

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

    Best cookies video on yt...

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

    Thanks so much for this demo - really well done subed

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

      glad you enjoyed the content Welcome to the community ❤️

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

    great video as always , when i use path="/" instead of using domain="--" , it apply the cookies to all the domain subdomain ,is that leads to any issues?

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

      another question when cookies get sent with each request ,say iam on ecommerce cite ,does it get compared each time in the server side ,and we we dont simply use the login authentication instead of coockies each time in the request ,response cycle

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

    Thank you Hussein

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

    Great & cool course!