Configures the session state HttpModule.
<sessionstate inproc="true/false" cookieless="true/false" timeout="minutes" server="server name" port="port number" />
You can configure the <sessionstate> section using the following five tag attributes:
Attribute | Description | Default |
---|---|---|
inproc | Indicates whether session state should be stored in-process with ASP+ (TRUE), or in an external state store process (FALSE). | TRUE |
cookieless | Indicates whether cookieless sessions should be used to identify client sessions (TRUE), or if cookie enabled sessions should be used. (FALSE) | FALSE |
timeout | Number of minutes a session can be idle. Once this limit has passed, the session will be abandoned. | 20 |
server | Server name of remote session state store. | localhost |
port | Port number of remote session state store. | 42424 |
If you wish to have a remote session state store, you must set the inproc attribute to FALSE, and specify the server name and port number (using the server and port atttributes) of the machine on which state services are running.
<configsections> <add name="sessionstate" type="System.Web.Config.SessionStateConfigHandler"> </configsections> <sessionstate inproc=”true” cookieless="true" timeout="20" server="localhost" port="42424"/>
Contained Within: <configuration>
Web Platform: IIS 5.0
Configuration File: config.web
Configuration Section Handler:
System.Web.Config.SessionStateConfigHandler
ASP+ Configuration Concepts