Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
For more information about the session element, see the following topic on the Microsoft IIS.net Web site: ASP Session <session>.
Specifies Active Server Pages (ASP) session state settings.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
---|---|
allowSessionState |
Optional Boolean attribute. Specifies whether session state persistence for an ASP application is enabled. The default value is true. |
keepSessionIdSecure |
Optional Boolean attribute. Specifies whether a session ID is sent as a secure cookie if assigned over a secure session channel. The default value is true. |
Max |
Optional integer attribute. Specifies the maximum number of concurrent sessions. The default value is -1. |
timeout |
Optional timespan attribute. Specifies the maximum period of time (hh:mm:ss) that a session object is maintained after the last request associated with the object is made. The default value is 00:20:00. |
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
configuration |
Specifies the root element in every configuration file that is used by IIS 7. |
system.webServer |
Specifies the top-level section group (in ApplicationHost.config) in which this element is defined. |
asp |
Configures settings for ASP applications. |
Remarks
For more information about the session element, see the following topic on the Microsoft IIS.net Web site: ASP Session <session>.
Element Information
Configuration locations |
Machine.config ApplicationHost.config Root application Web.config Application Web.config Directory Web.config |
Requirements |
Microsoft Internet Information Services (IIS) version 7.0 |
See Also
Reference
cache Element for asp [IIS Settings Schema]