User Id :    Password :      New Member   Forgot Password  
Topic: How does cookies differ from session variables?
--
06 Sep 2010 at 12:13 AM

Hiiii everyone

How does cookies differ from session variables?

Thanks

Re: How does cookies differ from session variables?
Gaurav
04 Oct 2010 at 09:59 PM

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.

Re: How does cookies differ from session variables?
Sowmitri.H
23 Jan 2011 at 11:23 AM

The cookies is a small text file stored (if the user is a first time visitor to the website) in a particular folder on the client machine. When the same machine user re-visits particularly the same website the data stored in cookies of client is retrieved by the browser to fetch the data stored earlier (if any and not important) to populate the website contents faster. thus improving performance.

Whereas, Session variables are user based also it is a form of code part and is accessible only during the server side requests.

Total Replies: 2
 
Featured Text Ad

Featured Ad