📞 0339-0387701 (WhatsApp) Contact

« Back to Information & Networking (NCCIA)

How does the Secure flag on a cookie help against sniffing?

A. It hides the cookie from the user
B. It deletes the cookie after one use
C. It makes the cookie larger
D. It tells the browser to send the cookie only over encrypted HTTPS connections ✅

Correct Answer: D. It tells the browser to send the cookie only over encrypted HTTPS connections

Explanation

A Secure cookie is never sent over plain HTTP, so a sniffer on an unencrypted link cannot capture it.