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.
Loading...
Related Quiz
- What is the primary purpose of transaction management in database operations?
- How can containerization aid in scaling web applications?
- The __________ listener is useful for monitoring changes in request attributes during the lifespan of a request.
- How does PreparedStatement help in preventing SQL injection attacks?
- When optimizing memory usage in a Java application, what strategies should be considered?