Session and Cookie

What is the different between session and cookies? Where is the session information stored? In RAM of the Client or Disk of the Client or it is stored on the server?

Questions by jpjese

Showing Answers 1 - 12 of 12 Answers

Session is stored on Server whereas cookie is on client  side....

amount of data in session is not limited i.e can have size of data equal to RAM size whereas cookie can take limited amount of data....

Cookie can be manually dissabled by the client using browser whereas Session can't

well, the purpose of session and cookie is the same --- to maintain the state [in a typical web application, based on http protocol]

Session -- Its stored at server side [containers memory, RAM] and usually the amount of data stored is more when compared to a cookie. Besides this, no-one from client side can manually disable/manipulate session.

Cookie -- Its stored at the clients hard-disk and the user has the complete authority to enable/disable it, one can also open a cookie file and make manipulations [but then, im not sure how useful it could be for a person:) ]

Thanks,
Vinay

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