What does the 'Secure' attribute flag do when appended to an HTTP cookie string specification?
A. It automatically formats the page text layout styles into complex encryption files.
B. It instructs the browser that the cookie should only be sent over encrypted HTTPS connections, protecting it from network interception.
C. It blocks automated search engine crawlers from reading the page structure.
D. It prevents the cookie from being deleted when the user closes the active window tab.
Answer: Option B
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!