HttpContextWrapper.SetSessionStateBehavior Method (SessionStateBehavior)

.NET Framework (current version)

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

Sets the type of session state behavior that is required in order to support an HTTP request.

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

public override void SetSessionStateBehavior(
	SessionStateBehavior sessionStateBehavior


Type: System.Web.SessionState.SessionStateBehavior

One of the enumeration values that specifies what type of session state behavior is required.

The SetSessionStateBehavior method overrides the base SetSessionStateBehavior method. To implement the base method, the SetSessionStateBehavior method calls the SetSessionStateBehavior method of the HttpContext class and passes the sessionStateBehavior setting.

.NET Framework
Available since 4.0
Return to top