ExpressJS Tutorial #5 - Cookies

preview_player
Показать описание
#expressjs #javascript #cookies

Want to support me and the channel? Donations are not required but greatly appreciated!

Want to learn Programming?

Other Links:

Рекомендации по теме
Комментарии
Автор

Hi Anson,

I was doing my own personal project and needed to understand cookies! So surprised when I found out it was you haha,

Looking forward to the chat app!

bobby
Автор

Hi thanks for the video. I don't get any cookies in Postman. Is there maybe a setting on Postman or ExpressJS that I missed to enable this?

marcopieterse
Автор

Why isn't authentication and authorization being taught like this more often? We see so many tutorials just showing how to send cookies to store in the browser, but not a lot of how to make the whole thing more secure.. Good job ma guy!

breezycodes
Автор

When you say session, do you mean session as opposed to jwt token? Can you use cookies with jwt tokens instead of sessions?

raba
Автор

I don't get 1 thing, on line 81 where it says the cookie id. How is it meant to know what the cookie id is if it is randomly generated id. How would it find the generated id to confirm if authorised for validating the cookie

aczerobilly
Автор

I have a question. If the user access and save his sassion Id on his cookies and then he loging with a completely diferent browser. What shold i do. I was thinking on keeping the session ID in the database and then use that same id in the new session but im not sure how secure is that. And if i do so, How much time should i keep that same id.

gbeck
Автор

How can I inject, read and delete data from the MySQL database (using pure React or Gatsby), what will I need if I can't have node.js on the server side if I only have Apache2?

rejzerPL
Автор

Is there any way to create new cookies via html button (without having to use .get/changing URL)? I'm trying to make an ecommerce site where when you click "AddToCart()" it just creates a new cookie. I want my site to remember my cookies regardless of what page I'm on.

scottobernier
Автор

How do I get autocomplete to work like in video for required modules like cookie-parser? When I type for example res.coo I want to get res.cookie(); from cookie-parser, instead I only get .cookies recommended.

allex
Автор

Thank you for the video. I spent a good 2-3 hours trying to figure out why on earth res.cookie() wouldn't work on my localhost. When I used postman it worked fine, meaning no error in my code. Do cookies really not work in localhost?

ashharkausar
Автор

Is there any forum where i can make question about this topics?

gbeck
Автор

Why you remove *validateCookie* Middleware from */signin* route? at the end of the tutorial.

umerfarooq
Автор

Hey would you please recreate this video with a working frontend that is requesting signin route from localhost. Because actual problem comes there....

In my case set cookie can be seen in response header but there is no cookie in application tab in devtool

abhidev
Автор

Hi my node api setting cookie in postman & browser while running locally.but when i deploy the same api on aws ec2 instance its still set cookie on postman but not in the browser.

res.cookie(Define.TOKEN, token, {
httpOnly: true,
secure:false
sameSite: 'lax'
})

Any solution?

mdjahidulislam
Автор

When browser don't allow cookies, then how can we handle users?

southredmondtoxik
Автор

Great video! I have made my own website using express.js and mongoose. It basically gets data from my bot's mongoDB database and fills in the fields, then lets the user change the settings. <3
Also, you should do a backup bot!

infiniwave
Автор

How do I validate a client cookie? lets say each client have a 50 char hash code session_id. How can we check if the client's hash-code exists in our server?

aryan_karim
Автор

somewhat confusing but I will get eventually I guess...

nigelpallatt
Автор

I am here because i don't want security vulnerability in my application.

kensyjolicoeur
Автор

can you please send me your expressJs pptx plz...

harshthakkar