Hi!
I want to ask about secured cookies via HTTPS.
Should secured cookie be automatically encrypted or not?
Why do I can see value of secure cookie in the browser ?
Is secured cookie != encrypted cookie ?
Greetings!
Chris
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vinay SinghRank #604 · 4K reputationPosted Aug 8, 2016, 1:06 AM EDT
Data sent over SSL (HTTPS) is fully encrypted, headers included (hence cookies), only the Host you are sending the request to is not encrypted. It also means that the GET request is encrypted (the rest of the URL).
Although an attacker could force a client to respond over HTTP, so it is highly recommended to use the "Secure" flag in your cookie, which enforce the use of HTTPS to send cookies.
Also, using the flag HTTPOnly would greatly enhance the security of your site since it does not allow Cookies to be read with Javascript code (Mitigating potential XSS vulnerabilities).
Krzysztof Krawiec3 reputationPosted Aug 8, 2016, 1:51 AM EDT