Concept Flow - Secure cookie attributes
Set Cookie in HTTP Response
Add Secure Attribute?
No→Cookie sent over HTTP and HTTPS
Yes
Cookie sent only over HTTPS
Add HttpOnly Attribute?
No→Cookie accessible by client scripts
Yes
Cookie inaccessible to client scripts
Add SameSite Attribute?
No→Cookie sent with all requests
Yes
Restrict cross-site cookie sending
Browser stores cookie with these restrictions
This flow shows how secure cookie attributes control when and how cookies are sent and accessed by browsers.