Security Operations

Which cookie attribute ensures a browser sends the session cookie only over encrypted HTTPS connections?

Show the answer

Correct answerD. Secure

AWhy not this: Code signing verifies software publisher and integrity; it is not a cookie attribute.

BWhy not this: It examines source code without running it; it is not a cookie attribute.

CWhy not this: It checks data entered by users and does not control cookie transmission.

DWhy this is right: This flag restricts the cookie to HTTPS, preventing it from being sent over unencrypted HTTP.

The Secure attribute tells the browser to send the cookie only over HTTPS, so it is not exposed in cleartext. Input validation checks submitted data and has nothing to do with how cookies are transmitted.