- Home
- All questions
- Question 286
CompTIA Security+ study material · question 286 of 611
Which two cookie attributes protect a session identifier, and what does each achieve? Choose two.
Show the answer
Answer: C. HttpOnly, so page scripts cannot read it
D. Secure, so the cookie travels only over TLS
Secure prevents plaintext transmission and HttpOnly limits what stored cross-site scripting can steal.
Source: OWASP Session Management Cheat Sheet (OWASP) — OWASP Session Management Cheat Sheet › Cookies