How does session memory remembers which session id is called in asp.net ?

Posted by Kasani007 under ASP.NET on 8/5/2014 | Points: 10 | Views : 341 | Status : [Member] | Replies : 1
How does session memory remembers which session id is called in asp.net




Responses

Posted by: kgovindarao523-21772 on: 8/7/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
Session variables are stored in a SessionStateItemCollection object that is exposed through the HttpContext.Session property.

Sessions are identified by a unique identifier that can be read by using the SessionID property.

By default, SessionID values are stored in a non-expiring session cookie in the browser. However, you can also configure the application to store SessionID values in the URL for a "cookieless" session.

However, you can specify that session identifiers should not be stored in a cookie by setting the cookieless attribute to true in the sessionState section of the Web.config file.

ASP.NET maintains cookieless session state by automatically inserting a unique session ID into the page's URL.

The session ID is embedded in the URL after the slash that follows the application name and before any remaining file or virtual directory identifier.

Thank you,
Govind

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response