GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  
 ASP.NET 2.0  |  Question 160 of 160    Print  
Cookies and Session Variables
How does cookies differ from session variables?


  
Total Answers and Comments: 5 Last Update: October 19, 2009     Asked by: pooja007 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Ume Sharma
 
Cookies hold small text whereas session can hold bigger amount of data
All browser dose not support cookies.

Above answer was rated as good by the following members:
shramika.kanekar, pooja007, Pawan_Developer
March 18, 2009 06:42:16   #1  
Ume Sharma Member Since: March 2009   Contribution: 1    

RE: Cookies and Session Variables
Cookies hold small text whereas session can hold bigger amount of data
All browser dose not support cookies.

 
Is this answer useful? Yes | NoAnswer is useful 5   Answer is not useful 1Overall Rating: +4    
April 13, 2009 03:24:04   #2  
sharath R chandra Member Since: April 2009   Contribution: 3    

RE: Cookies and Session Variables
Cookies are used for client based state management whereas session variables are used for server side state management.

 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
August 06, 2009 05:02:47   #3  
mrp100461 Member Since: January 2008   Contribution: 11    

RE: Cookies and Session Variables
Cookies are files on the users computer. The cookie can expire or be made permanent but the user can delete the cookie.
A session holds data with that session. The length of time a session is open can be changed. But after the session is finished the data is destroyed.

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
August 17, 2009 01:50:48   #4  
KukkuDipu Member Since: August 2009   Contribution: 2    

RE: Cookies and Session Variables

Cookies are stored in the user computer but sessions are stored in the
server.

All browser will not support cookies. But session will be supported by all
browser.

There is no option for disabling a session in the browser. But through browser
settings we can put off cookies.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 19, 2009 13:49:09   #5  
nikhiljain27 Member Since: November 2005   Contribution: 1    

RE: Cookies and Session Variables
Cookies:
1) Cookies can hold small amount of data in text format.
2) Cookies created on browser.
3) Cookies can be disabled by user computer.

Session:
1) Session can hold large amount of data.
2) Session created on the Server.
3) Session can not be disabled by user computer.

 
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