What is the role of a cookie in maintaining sessions?
A. To authenticate the user directly
B. To encrypt session data
C. To store user data on the server
D. To store a session identifier on the client
Answer: Option D
Solution (By JKSSB Mock Tests)
Cookies often contain a session ID that is sent to the server with each request, allowing the server to associate the request with a specific user session.
No comments yet. Be the first to start the discussion!