Category "cookies"

req.cookies returns undefined but cookies are set

I am using cookie-parser in my express app. When the root page is requested I set a random number on the cookie using res.cookie(name, value) and it sets it fin

How Chrome dev tools shows cookies

When I open the resources panel of Chrome's dev tools, I see a ton cookies set across many domains. I understand the definitional difference between a first par

How to sign a cookie manually using cookieParser?

For the sake of testing, I need to provide a signed cookie with HTTP request. So that, my Express app server can consider it as a signed cookie and put it into

How to detect if Prevent Cross-site tracking is active on Safari 13 with javascript

I would like to detect when Prevent Cross-site tracking is active in a browser using JavaScript. My challenge is trying to find a method to detect this and show

Is there a setting on Google Analytics to suppress use of cookies for users who have not yet given consent

According to EU Article 5(3) of the E-Privacy Directive (a.k.a 'The Cookie Laws'), web sites that target EU users have to gain opt-in consent from users before

how to edit a secure cookie?

i've seen some websites that you cannot get or edit theirs cookie with javascript (just can be seen in browser tool). What kind of cookie are they? How to edit

Use cookie-free domains - subdomain solution not working

I'm trying to optimize an html webpage, and one of the suggestions from yslow is: Use cookie-free domains There are 11 components that are not cookie-free

Unable to delete cookie from javascript

I am on an external site, and I am trying to delete the cookie via javascript. I did the following in the console: function deleteAllCookies() { var cooki

How does cookie based authentication work?

Can someone give me a step by step description of how cookie based authentication works? I've never done anything involving either authentication or cookies. Wh