Kohjah Breese
Kohjah Breese

Reputation: 4136

Is it possible to access a cookie and not have it sent in request headers?

Is it possible to set a cookie in a client's computer, use JavaScript to access the cookie, but not have it sent in HTTP request header, like:

Cookie: PHPSESSID=r6osuqd20m72ho45lf5lohohe6; sum=csfftak5jf8gjffsp3el93g2a2

Upvotes: 0

Views: 47

Answers (2)

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385144

No, but you can probably use HTML5 local storage to achieve your goal. Whatever your goal is. :)

Upvotes: 0

Luc
Luc

Reputation: 1491

No, cookies are always send to the server, with each request.

Upvotes: 1

Related Questions