GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 169 of 170    Print  
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?



  
Total Answers and Comments: 4 Last Update: August 31, 2009     Asked by: jpjese 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 17, 2009 00:50:12   #1  
maneesh.ce.2007 Member Since: November 2008   Contribution: 12    

RE: Session and Cookie
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

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
July 25, 2009 07:55:25   #2  
sasikumarnp Member Since: July 2009   Contribution: 6    

RE: Session and Cookie
Session maintains the client state on server side Cookie maintains the client state on client side. Servlet sends the session id to the client through cookie.
 
Is this answer useful? Yes | No
July 27, 2009 22:51:47   #3  
Leeall Member Since: July 2009   Contribution: 1    

RE: Session and Cookie
Cookie is stored at disk of client session is stored at RAM of server
 
Is this answer useful? Yes | No
August 30, 2009 08:50:51   #4  
vinaymudgil007 Member Since: May 2008   Contribution: 43    

RE: Session and Cookie
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

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape