answersLogoWhite

0

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.

User Avatar

Wiki User

11y 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


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.


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 use Microsoft richtext box control in aspnet?

george


How do you use javascript in aspnet?

Ajax, I believe uses JavaScript + ASP.


Why we use aspx as aspnet extention?

B'cos this is the extension of a page in .net


How you stop a page to refresh in ASPNet?

You can use ajax to prevent refresh the page


How do you reset session variables?

<?php // start session session_start(); // Assign value to session $user = $_SESSION['variable_name']; // variable_name = value to store in session // To reset session variable use below method unset($user); // If you want to destroy all session variables use below method session_destroy(); // destroys all session variables ?>


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 to use JSession in Joomla?

The following code gets the current session then sets the value of the session variable 'sessionName' to 'helloworld'. $session =& JFactory::getSession(); $session->set( 'sessionName', 'helloworld' ); The session variable can be retrieved later in a similar way. $session =& JFactory::getSession(); echo 'Session variable sessionName has value: ' . $session->get( 'sessionName', 'empty' );


How do you use the word session in a sentence?

At the end of the session, we all exited out of the lunch room and went out to recess.


How many objects in aspnet?

6