SessionStateSection.UseHostingIdentity Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value specifying the whether the session state will use client impersonation when available, or will always revert to the hosting identity.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("useHostingIdentity", DefaultValue = true)]
public bool UseHostingIdentity { get; set; }

Property Value

Type: System.Boolean

true if Web application should revert to hosting identity; otherwise, false. The default value is true.

.NET Framework
Available since 2.0
Return to top