Session cookies in Remix

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

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

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

    Thank you ❤️
    That was one really really high quality tutorial.
    Wishing you all the best in your endeavours. 🎉

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

    Thank you! I like the way you iterate over the solution to make it robust.

  • @КонстантинАлександровский
    @КонстантинАлександровский 4 หลายเดือนก่อน

    That's great! That's what I need. Thank you very much! You explained everything simply and clearly!

  • @coreyleelarson
    @coreyleelarson 9 หลายเดือนก่อน

    Thank you! Clear and concise. The cookie session storage is finally starting to click for me.

  • @mhddngs
    @mhddngs 11 หลายเดือนก่อน +1

    It’s like you’re reading my mind! Cheers

  • @eleah2665
    @eleah2665 11 หลายเดือนก่อน +2

    Very good. There is enough Next content out there. Not enough Remix.

  • @tech3425
    @tech3425 9 หลายเดือนก่อน

    This helped me understand remix sessions much better

  • @maxrchung
    @maxrchung 6 หลายเดือนก่อน

    great video thanks, cleared up some questions i had on remix sessions :)

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

    Not using Remix currently, but learned a bunch, thank you!

  • @subodhpareek18
    @subodhpareek18 11 หลายเดือนก่อน +3

    19:55 you mentioned cookie being encrypted, that is perhaps not an accurate description. It is signed but not encrypted, anybody with the cookie can still read the payload. For true encryption one would have to use something like Jose.

    • @samselikoff
      @samselikoff  11 หลายเดือนก่อน +6

      Yes I realized this - verbal typo on my part! Thanks for pointing it out. Signed but not encrypted 👍 So the data is secure in the sense that it can be trusted to have come from the server. But you wouldn’t want to put sensitive data in it, since it can be read.

  • @TheBuilderCraft
    @TheBuilderCraft 11 หลายเดือนก่อน +4

    What if you change first part of cookie by not touching signature?

    • @shivam-dua
      @shivam-dua 11 หลายเดือนก่อน +8

      Signature is generated for provided data and secret. If data is tampered with, the signature generated during verification wouldn't match and session will be discarded.

  • @adiadiadi
    @adiadiadi 11 หลายเดือนก่อน +2

    I'm curious given your experience with both Next and Remix, do they differ in significant way, in feature-set and mental models? Or are they more similar than they are different at this point?

  • @neociber24
    @neociber24 11 หลายเดือนก่อน +2

    Good video, but ngl makes me nervious seeing let instead of const lol

    • @samselikoff
      @samselikoff  11 หลายเดือนก่อน +2

      Did you know parameters can never be marked as constants? For that and many other reasons, I really wish they had never become used as much as they are in JS vs. other languages. I’ve considered using const in videos just so it doesn’t come up and I understand it can be distracting because so many teams default to const, but pedagogically it’s hard for me to justify, because avoiding local mutation is simply not a concern a programmer should have to burden themselves with; and when it is called for, changing a const to a let detracts from the substance of what’s being taught.
      This is a good article on let vs. const and pretty much sums up how I feel: overreacted.io/on-let-vs-const/

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

    More remix content please!

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

    noice noice

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

    I love your content so much but one thing I keep wondering is "let" for everything. Why? :D Isn't it a better practice to use "const"?

    • @samselikoff
      @samselikoff  11 หลายเดือนก่อน +1

      I disagree it's a best practice but honestly it doesn't really matter, I will probably start using const just because I don't want to distract anybody, but this article pretty much sums up how I feel: overreacted.io/on-let-vs-const/

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

    hey Sam, what keyboard do you use? You type blazingly fast.

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

    Thanks a lot. I have problem to understanding how remix set their cookie and how can I get cookie value using getSession method. In simple way, I can imagine cookie session storage like a DB that save a lot of key value pair.

    • @samselikoff
      @samselikoff  10 หลายเดือนก่อน +1

      The beauty of using Cookie storage rather than a DB is that the browser stores the session (and the server verifies it with the secret). The getSession method is reading the Cookie header from the request (timecode 7:54). Does that make sense?

    • @ngaji_it
      @ngaji_it 9 หลายเดือนก่อน

      @@samselikoff yeah, that does make sense. Nice explanation. Thanks

  • @codebulls7943
    @codebulls7943 9 หลายเดือนก่อน

    How do you manage to import createCookieSessionStorage module without having to name the file "session.server.ts"?. In order to get that module I need to add ".server" to the name's file. But I am getting null value when getting the cookie property in my loader

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

    can we do something like that in nextjs ?

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

    Promo sm