SessionStateUtility::IsSessionStateRequired Method (HttpContext^)

 

Gets a value which indicates whether the session state is required for the specified HttpContext.

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

public:
static bool IsSessionStateRequired(
	HttpContext^ context
)

Parameters

context
Type: System.Web::HttpContext^

Specifies the HttpContext to check.

Return Value

Type: System::Boolean

true if the session state is required; otherwise, false.

.NET Framework
Available since 4.6.2
Return to top
Show: