[This is preliminary documentation and subject to change]

### AspSessionMax

This metabase property specifies the maximum number of concurrent sessions that IIS will permit. If a client attempts to establish a new session with IIS once this limit is reached, the client will receive an error (HTTP 500 "Server Too Busy").

Note ASP incurs a certain amount of memory overhead for each session maintained. Although you could use AspSessionMax to limit this memory overhead, it is generally more appropriate to manage the lifetime of session objects within IIS by using the AspSessionTimeout property, so that client browsers will be rejected once the limit is reached.

If an incoming request doesn't have an ASP session cookie, or has a session cookie that doesn't match an existing session, it is considered a new session request. The Web service setting for this property is applicable to all in-process and pooled out-of-process application nodes, at all levels. Metabase settings at the Web server level or lower will be ignored for in-process and pooled out-of-process applications. However, settings at the Web server level or lower will be used if that node is an isolated out-of-process application.

Attribute Name | Attribute Value
Data Type | DWORD
Attributes | INHERIT
Default Value | 4294967295
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | ASP_MD_UT_APP
StartingNumber |
EndingNumber | 0
ID | 7029

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer
/LM/W3SVC | IIsWebService
/LM/W3SVC/1/ROOT | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_bin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdmin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelp | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADC | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/Scripts | IIsWebVirtualDir
/LM/W3SVC/2/ROOT | IIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdmin | IIsWebVirtualDir

### IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_ASP_SESSIONMAX
Data type | DWORD
User type | ASP_MD_UT_APP

Related Topics

AspSessionTimeout

© 1997-2001 Microsoft Corporation. All rights reserved.