Manages unique identifiers for ASP.NET session state.
Assembly: System.Web (in System.Web.dll)
Creates a unique session identifier for the session.
Decodes a URL-encoded session identifier obtained from a cookie or the URL.
Encodes the session identifier for saving to either a cookie or the URL.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Gets the session-identifier value from the current Web request.
Initializes theobject with information from configuration files.
|InitializeRequest(HttpContext, Boolean, Boolean)|
Performs per-request initialization of theobject.
Deletes the session-identifier cookie from the HTTP response.
|SaveSessionID(HttpContext, String, Boolean, Boolean)|
Saves a newly created session identifier to the HTTP response.
Returns a string that represents the current object.(Inherited from Object.)
Gets a value indicating whether a session identifier is valid.
The SessionID property, which can be accessed from the Session property of the current HttpContext or Page. The ASP.NET session identifier is a randomly generated number encoded into a 24-character string consisting of lowercase characters from a to z and numbers from 0 to 5.class is an HTTP module that manages unique session identifiers for use with ASP.NET session state. The unique identifier for an ASP.NET session is the
By default, the SessionID value is sent in a cookie with each request to the ASP.NET application. The name of the cookie that contains the SessionID value is ASP.NET_SessionId by default. You can configure a different cookie name by setting the cookieName attribute of the sessionState Element (ASP.NET Settings Schema) to the desired cookie name.
Notes to Inheritors:
You can replace the ASP.NET session identifier with your own custom session identifier by creating a class that inherits the CreateSessionID and Validate methods with your own custom implementations. For an example of overriding the class and implementing these methods, see the example provided for the CreateSessionID method.class and overriding the
You can replace the entire ISessionIDManager interface. If your custom session-ID manager supports cookieless session identifiers, you will need to implement a solution for sending and retrieving session identifiers in the URL, such as an ISAPI filter. For more information about creating a custom session-ID manager, see ISessionIDManager.with a custom session-ID manager by creating a class that implements the
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.