Multiple choice technology security

Which cookie flag, when set, will prevent their transmission over non secure channel?

  1. Secure

  2. Domain

  3. Expires

  4. Static

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Secure cookie flag ensures cookies are only transmitted over encrypted HTTPS connections, preventing them from being sent over unencrypted HTTP. This protects sensitive cookie data from interception. Domain (B) specifies which hosts receive the cookie. Expires (C) sets cookie lifetime. 'Static' (D) is not a valid cookie attribute.

AI explanation

To answer this question, you need to understand the purpose of each cookie flag and how it affects the transmission of cookies.

Option A) Secure - This option is correct. When the "Secure" flag is set, it ensures that the cookie is only transmitted over a secure (HTTPS) connection. If the connection is not secure, the cookie will not be transmitted.

Option B) Domain - The "Domain" flag is used to specify the domain(s) for which the cookie is valid. It does not affect the transmission of the cookie over a secure or non-secure channel.

Option C) Expires - The "Expires" flag is used to specify the expiration date and time for the cookie. It does not affect the transmission of the cookie over a secure or non-secure channel.

Option D) Static - There is no cookie flag called "Static". This option is incorrect.

The correct answer is Option A) Secure. This option is correct because when the "Secure" flag is set for a cookie, it ensures that the cookie is only transmitted over a secure (HTTPS) connection, and it will not be transmitted over a non-secure channel.