What is Cookie ? Session management in Node JS express | Node JS in Hindi #12 |

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • НаукаНаука

Комментарии • 20

  • @coderdost
    @coderdost  Год назад

    NODE+ EXPRESS+ MONGO MasterClass (12 Hour) : ruclips.net/video/ChVE-JbtYbM/видео.html
    React JS MasterClass (10 Hour) : ruclips.net/video/6l8RWV8D-Yo/видео.html

  • @gouravsharma3065
    @gouravsharma3065 3 года назад +3

    please complete this node series as soon as possible. humble request.

  • @coderdost
    @coderdost  2 года назад

    ▬ Contents of this video ▬
    0:00 - What is Session ?
    1:15 - What is Cookie ?
    2:15 - Code for ExpressJS Session Middleware

  • @abhi1ertu
    @abhi1ertu 2 года назад +2

    Great explanation brother

  • @newworldmetastar9043
    @newworldmetastar9043 Год назад

    Great bhai

  • @mohd0606
    @mohd0606 2 года назад +1

    Great video

  • @DhruvinS720
    @DhruvinS720 Год назад

    cookie postman me show kar raha hai but browser me save nah ho raha hai please solution bataye 2 din se pareshan hoon

    • @coderdost
      @coderdost  Год назад +1

      Is it secure key ?? Https or http ?? Secure false is important to test

    • @DhruvinS720
      @DhruvinS720 Год назад

      @@coderdosthaa mene secret key use ki hai

    • @coderdost
      @coderdost  Год назад +1

      @@DhruvinS720 No I mean secure: true ? this option is there// which only works on HTTPS.. for HTTP ... secure:false is need

    • @DhruvinS720
      @DhruvinS720 Год назад

      @@coderdost yes secure: false hi hai

    • @coderdost
      @coderdost  Год назад +1

      @@DhruvinS720 Ok one more thing. the browser side page is running from node only ? or you are using on localhost:3000 ? as it will not work on a separate local server of react. Otherwise its hard to guess the fault. as session needs to be debugged live in code..
      Check in chrome > devtools > network tab - what are the request and response headers.. there should be one Header called 'set-cookie' coming from server (response header). If that is successful, every next request should have a header 'cookie' in headers.

  • @hafizimranattari
    @hafizimranattari 3 года назад

    in new tab same cookie value shown

    • @coderdost
      @coderdost  2 года назад

      yes cookies are saved in files and can remain for many days even if browser is closed and re-opened. Cookie only removed when 1. Time expires 2. You clean browser storages.

  • @tejindersingh4580
    @tejindersingh4580 2 года назад

    nice

  • @Nkworldff
    @Nkworldff Год назад

    hey how to contact you i have some work for you

    • @coderdost
      @coderdost  Год назад +1

      contact at email in about section. But I don't need work. Thanks