What is the role of the Secure flag in a cookie?

  • Enables third-party access to the cookie
  • Ensures the cookie is encrypted
  • Indicates the cookie is safe for cross-site requests
  • Restricts the cookie to HTTPS connections
The Secure flag in a cookie indicates that the cookie should only be sent over secure, encrypted connections (HTTPS). This enhances the security of the cookie by preventing it from being transmitted over unsecured HTTP connections.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *