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

  1. Secure

  2. Domain

  3. Expires

  4. Static


Correct Option: A

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.

Find more quizzes: