NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

<sessionstate> Section Handler

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

Remarks

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.

Example:

<configsections>
   <add name="sessionstate"
        type="System.Web.Config.SessionStateConfigHandler">
</configsections>

<sessionstate
   inproc=”true”
   cookieless="true"
   timeout="20"
   server="localhost"
   port="42424"/>

Requirements

Contained Within: <configuration>

Web Platform: IIS 5.0

Configuration File: config.web

Configuration Section Handler:

System.Web.Config.SessionStateConfigHandler

See Also

ASP+ Configuration Concepts