What are the advantages of Cookies over Session Object?


• It informs each page what session the request belongs to when a user accesses during a session.
• It retrieves all the session information stored on the server.
• Cookies can persist for a much longer period of time than session that has a timeout value usually of 20 minutes and hence can store information even when a user is off the site.

Showing Answers 1 - 1 of 1 Answers

Albert Arul prakash

  • Sep 6th, 2007
 

Sessions are server side objects which travels between client and web server. Cookies will not be used/executed when the Brower settings disable the usage of cookies. We cannot retrieve or store any data in cookie if browser disables the cookie. Session can be accessed or used even if the cookies are disabled by browser.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions