HttpContextBase.SetSessionStateBehavior(SessionStateBehavior) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, sets the type of session state behavior that is required to support an HTTP request.
public:
virtual void SetSessionStateBehavior(System::Web::SessionState::SessionStateBehavior sessionStateBehavior);
public virtual void SetSessionStateBehavior (System.Web.SessionState.SessionStateBehavior sessionStateBehavior);
abstract member SetSessionStateBehavior : System.Web.SessionState.SessionStateBehavior -> unit
override this.SetSessionStateBehavior : System.Web.SessionState.SessionStateBehavior -> unit
Public Overridable Sub SetSessionStateBehavior (sessionStateBehavior As SessionStateBehavior)
Parameters
- sessionStateBehavior
- SessionStateBehavior
One of the enumeration values that specifies what type of session state behavior is required.
Exceptions
A derived type fails to implement this method.
Remarks
The SetSessionStateBehavior method provides a base method that must be implemented by classes that inherit from this type. ASP.NET implements this method in the HttpContextWrapper and HttpContext classes.