answersLogoWhite

0

* The main difference between cookies and sessionsis that cookies are stored in the user's browser, and sessions are not. This difference determines what each is best used for.

* A cookie can keep information in the user's browser until deleted. If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. You can store almost anything in a browser cookie. * The trouble is that a user can block cookies or delete them at any time. If, for example, your websites shopping cart utilized cookies, and a person had their browser set to block them, then they could not shop at your website. * Sessions are not reliant on the user allowing a cookie. They work instead like a token allowing access and passing information while the user has their browser open. The problem with sessions is that when you close your browser you also lose the session. So, if you had a site requiring a login, this couldn't be saved as a session like it could as a cookie, and the user would be forced to re-login every time they visit.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

What is session in aspnet?

session is a server variable. it works like the ordinary variable but it is stored on the server


Which property in ASPNET is used to remove cookies from one page?

cookie.kill


Define sessions in aspnet?

ASP.NET automatically creates a session for each unique browser connection to your application. You can access the session through the Session[] collection in any System.Web.UI.Page object.


Which line of code do you add to your webconfig file to enable sessions without cookies in aspnet?

<sessionState cookieless="true" />


Difference between aspnet 2.0 and aspnet 3.5?

Asp.net 3.0 have some new feature Like Windows Presentation Foundation,Windows Communication Foundation,Windows Workflow Foundation,Windows Card Space. these feature doesn't have asp.net 2.0 .


How many in built objects are there in ASPNet?

there are 6 objects. 1. server 2. session 3. application 4. ObjectContext 5. Response 6. Request


How do you read the dll file within the aspnet program which the dll file is used to pass parameter between aspnet program?

Question need some more clarification


What is the difference between aspnet vbnet and c?

asp.net is website programming vb.net is windows forms programming the visual basic language c#.net is windows forms programming in c# language


Where can one find information on aspnet?

Information about ASPNET can be found on the ASPNET website. Anything one needs to know about using this application framework for web development purposes can be found there.


How many objects in aspnet?

6


What is the use of Session in aspnet?

Using Sessions we can maintain user specific data on the server. Since HTTP is a stateless protocol so Session can be used to carry values specific to a particular user from one webpage to another. Lets say person1 and person2 and are accessing a website. Person1 adds one item to his cart and person2 adds three items to his cart. When Person1 moves to the next page to process the payment, Person1 should see only the items selected by him. One way of doing this is by using a Session object and storing the items in the Session object.


What is the default scripting language for ASPNET?

VBScript