System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object System.Web.IHttpModule is ASP.NET's default session-state handler. It writes session data to and retrieves it from the session-state store and raises the Session_OnStart and Session_OnEnd events. For details about how to use ASP.NET session state to store and retrieve values for a user session, see ASP.NET Session State Overview. You can replace the with a custom implementation of the interface that manages session state. For an example of a custom session-state module, see the class overview. Provides session-state services for an application. This class cannot be inherited. Constructor This constructor is not intended to be called from application code. An object is created when an ASP.NET application is started. The object calls the constructor to create the object for the application. The is specified in the configuration for an application. Initializes a new instance of the class. 1.0.5000.0 2.0.0.0 Method System.Void This method is not intended to be called from application code. An object is created when an ASP.NET application is started. The object creates and initializes the object for the application and calls the method when the object is released. The is specified in the configuration for an application. Executes final cleanup code before the object is released from memory. 1.0.5000.0 2.0.0.0 Event System.EventHandler The event is raised at the end of a request when the method has been called or when the session has expired. A session expires when the number of minutes specified by the property passes without a request being made for the session. The Session_OnEnd event is used to perform any cleanup work for a session such as disposing of resources used by the session. You can specify a handler for the event by adding a public subroutine named Session_OnEnd to the Global.asax file. The Session_OnEnd event is only supported when the session-state property value is , which is the default. If the session-state is set to or , then the Session_OnEnd event in the Global.asax file is ignored. If the session state property value is , then support for the Session_OnEnd event is determined by the custom session-state store provider. Though the event is public, you can only handle it by adding an event handler in the Global.asax file. This restriction is implemented because instances are reused for performance. When a session expires, only the Session_OnEnd event specified in the Global.asax file is executed, to prevent code from calling an event handler associated with an instance that is currently in use. For more information about the Global.asax file, see Global.asax Syntax. Occurs when a session ends. 1.0.5000.0 2.0.0.0 Method System.Void This method is not intended to be called from application code. An is created when an ASP.NET application is started. The object calls the method when it creates the object for the application. The class is specified in the configuration for an application. Calls initialization code when a object is created. The current application. 1.0.5000.0 2.0.0.0 Event System.EventHandler The event is raised at the beginning of a request when a new session is started. A new session is started if a request is made that does not contain a session identifier, the session identifier is invalid, or the session associated with a session identifier has expired. The Session_OnStart event is used to perform any initialization work for a session such as setting up default values for session variables. You can specify a handler for the event by adding a public subroutine named Session_OnStart to the Global.asax file. For more information about the Global.asax file, see Global.asax Syntax. The event that occurs when a session is created. 1.0.5000.0 2.0.0.0