Express JS #12 - Cookies

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

КОМЕНТАРІ • 19

  • @Olderaccount17
    @Olderaccount17 2 місяці тому +3

    3 minutes in and I'm already *dying* for a platter of cookies.

  • @MeihaJensen
    @MeihaJensen 6 місяців тому +7

    My takeaway
    1) cookies are small piece of data that contains small information.
    2) And it is set by the server and sent to the client, the client has to include the cookies upon subsequent request.
    3) the cookie returned is in string format. And we’ll like it in JSON so we use cookieparser middleware.
    4) cookie-parser middleware is useful for parsing cookies. To JSON format.

  • @xfactorbangs5821
    @xfactorbangs5821 4 місяці тому

    Are you using the intelliSence for code Auto completion?,if not please reccomend what you are using .

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

    Hi I do have a question about your video I saw complete express courses, and I also saw those individual topic-based courses. But the complete one is older than the individual section. So would u please tell me the difference on contents

    • @ansonthedev
      @ansonthedev  9 місяців тому +3

      There is no difference. This video is just a section of what you see in the 8 hour video. I decided to split up the 8 hour video into its own sections and put them in a playlist making it easier for those who just care about a specific topic rather than skim through the 8 hour video.

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

    What's the point of signed cookies.

    • @durubhuru
      @durubhuru 11 днів тому +1

      Imagine you're, at a party and you receive a VIP wristband to signal your presence there; this wristband bears a code crafted exclusively by the host himself/herself - if anyone attempts to create a counterfeit band or switch yours with theirs the mismatch in the code will reveal the ruse, to the host.
      Signed cookies operate in a manner by incorporating a code (signature) linked to the data that only the server can generate authentically. If an individual attempts to alter or forge the data in any way the signature will not align properly. The server can promptly detect any manipulation attempts. It serves as a method to confirm that the information being transmitted or received remains unaltered.

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

    what is this font? :D

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

    can i use localstorage instead of cookie?

    • @ansonthedev
      @ansonthedev  9 місяців тому +2

      yes, but browser does not send stuff from local storage automatically even when withCredentials is set to true. You will need to manually send the data from local storage to the server.

  • @three-zeros
    @three-zeros 8 місяців тому

    Umm... I have a question: cookies will be deprecated and turned off in the Q2-Q3 of 2024 by Google, so can you use something else except them?

    • @ansonthedev
      @ansonthedev  8 місяців тому +4

      Local Storage with JWT.

    • @three-zeros
      @three-zeros 8 місяців тому +1

      @@ansonthedev oh, got you

    • @abdul.rawi215
      @abdul.rawi215 6 місяців тому +2

      as far as i understood google will only be removing third party cookies which means cookies created and accessed by the same website will still be there

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

      Ive been trying to set cookies from my express backend.. the cookies show in postman when testing, but it doesnt show in the browser.. how can i fix this please

    • @anthonymedina4535
      @anthonymedina4535 4 місяці тому

      ​​@@raphaelokenyi2138i have the same problem, finally, you solved it?