Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which cookie attribute prevents JavaScript from reading a session token?

  1. A httpOnly
  2. B secure
  3. C sameSite
  4. D path
Answer

httpOnly

secure restricts the cookie to HTTPS and sameSite defends against CSRF. Together they make cookies safer than localStorage for session tokens.

All Cybersecurity MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as