Which of the following should be stored in the cookie?
-
Session ID
-
Account Privileges
-
UserName
-
Password
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.