HTTP Cookies Crash Course

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 201

  • @vladyslavkarpenko9372
    @vladyslavkarpenko9372 2 роки тому +16

    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 роки тому +11

      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 роки тому +29

    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 10 місяців тому

      0:19

    • @HustlerNoss
      @HustlerNoss 10 місяців тому

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

    • @HustlerNoss
      @HustlerNoss 10 місяців тому

      456790

    • @HustlerNoss
      @HustlerNoss 10 місяців тому

      0:19

  • @asadjivani4074
    @asadjivani4074 3 роки тому +9

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

  • @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 😍

  • @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

  • @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!

  • @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.

  • @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 2 роки тому +2

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

  • @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 UA-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 ! ☝️

  • @tajpouria
    @tajpouria 4 роки тому +5

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

  • @hardikchavda1045
    @hardikchavda1045 2 роки тому

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

  • @prayasarora
    @prayasarora 4 роки тому +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  4 роки тому +1

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

  • @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

  • @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 ☺️

  • @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

  • @avadh4056
    @avadh4056 2 роки тому +1

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

  • @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.

  • @omarislearning3329
    @omarislearning3329 3 роки тому +4

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

  • @codedynamics1
    @codedynamics1 2 роки тому +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 😉

  • @janicethomas3592
    @janicethomas3592 Рік тому

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

  • @moolipit
    @moolipit 3 роки тому +2

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

  • @ushasr2821
    @ushasr2821 2 роки тому +1

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

  • @rezaghasemzadeh9440
    @rezaghasemzadeh9440 3 місяці тому

    one of the best tutorials about cookies, thank you

  • @gstoaldo
    @gstoaldo 2 роки тому +1

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

  • @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.

  • @abishekbaiju1705
    @abishekbaiju1705 3 роки тому +23

    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

  • @vishalsrane
    @vishalsrane 2 роки тому +1

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

  • @section9999
    @section9999 3 роки тому

    "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. 😎

  • @shashion
    @shashion Рік тому

    I love how passionate you are Hussein Thanks .

  • @ahmedboutaraa8771
    @ahmedboutaraa8771 3 роки тому

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

  • @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.

  • @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 😍

  • @000maestro000
    @000maestro000 4 роки тому +3

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

    • @hnasr
      @hnasr  4 роки тому +1

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

  • @JatiIID
    @JatiIID 7 місяців тому +1

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

  • @karankanojiya7672
    @karankanojiya7672 3 роки тому +1

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

  • @jerrygeorge180
    @jerrygeorge180 Рік тому

    Very unique and interesting style of teaching, thanks man.

  • @JordonDev
    @JordonDev 2 роки тому +1

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

  • @JatiIID
    @JatiIID 7 місяців тому +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.

  • @mrm4691
    @mrm4691 2 роки тому

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

  • @KDOERAK
    @KDOERAK 2 роки тому

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

  • @melanieburger6186
    @melanieburger6186 6 місяців тому

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

  • @hey.............
    @hey............. Рік тому

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

  • @erzloh
    @erzloh 2 місяці тому

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

  • @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

  • @송예은-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

  • @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 :)

  • @FahadKhan-qj3ej
    @FahadKhan-qj3ej 2 роки тому

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

  • @kambalavijay6800
    @kambalavijay6800 3 роки тому

    It's just outstanding. You deserve more views.

  • @yadusolparterre
    @yadusolparterre 3 роки тому

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

  • @bashar876
    @bashar876 Рік тому

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

  • @SohailKhan-cb9ls
    @SohailKhan-cb9ls 2 роки тому

    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. 😂

  • @krishnakumar-rp9wc
    @krishnakumar-rp9wc 3 роки тому

    In love with your life lessons and talking

  • @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.

  • @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 😊

  • @РоманВоловик-з3д
    @РоманВоловик-з3д 4 роки тому +3

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

  • @rick_from_yr
    @rick_from_yr 4 роки тому +1

    The best video to understand cookies :D thanks a lot

  • @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.

  • @rakeshreddy3485
    @rakeshreddy3485 4 роки тому +1

    your channel is one of the best man.Useful content

    • @hnasr
      @hnasr  4 роки тому

      rakesh reddy thanks!!

  • @TheSonicTooth
    @TheSonicTooth 3 роки тому

    Hussein, you tha man. Love your sense of humour

  • @bihireboris3407
    @bihireboris3407 5 років тому +5

    please do a video like that on PWA

  • @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)??

  • @empuraan4710
    @empuraan4710 Рік тому

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

  • @code-den
    @code-den 3 роки тому

    The best cookie video i've watched

  • @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

  • @HarshKapadia
    @HarshKapadia 2 роки тому

    This was amazing. Thank you so much, Hussein!

  • @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.

  • @transcend1078
    @transcend1078 Рік тому

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

  • @DevAmirull
    @DevAmirull Рік тому

    What a perfect explanation. Thanks

  • @vishalsingh8758
    @vishalsingh8758 3 роки тому

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

  • @gurkaransingh449
    @gurkaransingh449 3 роки тому +1

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

  • @sunjc826
    @sunjc826 3 роки тому

    Man you are so engaging! Love it!

  • @mohamedjasim3916
    @mohamedjasim3916 2 роки тому

    Amazing tutorial. Go on, you are the best.

  • @goodboy8833
    @goodboy8833 5 місяців тому

    Now it's good anna, bit recovered

  • @nameerror0235
    @nameerror0235 4 роки тому +1

    You are Awesome. Great content 🎉🙌🏼

  • @kirillzlobin7135
    @kirillzlobin7135 9 місяців тому

    Thank you for sharing your knowledge

  • @isrcast01
    @isrcast01 3 роки тому

    Thanks for this clear explanation video!

  • @alexsh.8080
    @alexsh.8080 3 роки тому

    What an awesome man you are Hussein! Cheers from Russia

    • @hnasr
      @hnasr  3 роки тому

      Wow, thanks! greetings to all subs from Russia

  • @MAT23154
    @MAT23154 2 роки тому

    Thank you! Very clear explanation.

  • @prakashpotlapadu2493
    @prakashpotlapadu2493 Місяць тому

    Thanks a lot. Awesome content!

  • @hardikp5192
    @hardikp5192 3 роки тому

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

  • @drwombat
    @drwombat 2 роки тому

    Thanks man excellent stuff. Subscribed

  • @leonbenjamin7891
    @leonbenjamin7891 3 роки тому

    Best cookies video on yt...

  • @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 ✌🏻

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 2 роки тому

    thanks alot. I now know cookies very well

  • @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

  • @brod515
    @brod515 4 роки тому

    Why did Hulu feel the need to do that. Don't you need to be logged in to use their services anyway? didn't they already know everyone identity including their bank details.

  • @yogeshnikam4831
    @yogeshnikam4831 Рік тому

    this is awesome! thanks!!

  • @sarcaastech
    @sarcaastech Рік тому

    Done ✔️ thanks for knowledge 🙏

  • @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 🙏👍

  • @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 ❤️

  • @alhusseinashraf9167
    @alhusseinashraf9167 Рік тому

    really great video and informative

  • @richardjacksxn
    @richardjacksxn 3 роки тому

    Awesome video, thank you!

  • @Relax-ls1xi
    @Relax-ls1xi 3 роки тому

    King of sessions..

  • @curryjl1027
    @curryjl1027 3 роки тому

    Great video. Also, I made it to the end. :D

  • @ינוןאלבז-כ1ז
    @ינוןאלבז-כ1ז 3 роки тому

    I love you, very interesting topics

  • @rajashekhar433
    @rajashekhar433 4 роки тому +1

    Thank you Hussein