What does the 'Secure' attribute flag do when appended to an HTTP cookie string specification?
A. It blocks automated search engine crawlers from reading the page structure.
B. It automatically formats the page text layout styles into complex encryption files.
C. It prevents the cookie from being deleted when the user closes the active window tab.
D. It instructs the browser that the cookie should only be sent over encrypted HTTPS connections, protecting it from network interception.
Answer: Option D
Solution (By JKSSB Mock Tests)
The 'Secure' cookie attribute ensures that sensitive authentication cookies are never sent over unencrypted HTTP pathways, mitigating eavesdropping risks.
No comments yet. Be the first to start the discussion!