Which of the following should be stored in the cookie?
-
Session ID
-
Account Privileges
-
UserName
-
Password
A
Correct answer
Explanation
Cookies should store a Session ID - an identifier that references session data on the server, not the actual sensitive data. Account privileges, usernames, and passwords should never be stored directly in cookies as they would be exposed to the client and vulnerable to interception or tampering.