Multiple choice technology security

Which of the following should be stored in the cookie?

  1. Session ID

  2. Account Privileges

  3. UserName

  4. Password

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A session identifier is the only appropriate data to store in a cookie. Sensitive data like passwords should never be stored in cookies as they can be intercepted or stolen. Account privileges and usernames should be retrieved from the server using the session ID.