SessionStateUtility.IsSessionStateRequired(HttpContext) Method

Definition

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

C#
public static bool IsSessionStateRequired(System.Web.HttpContext context);

Parameters

context
HttpContext

Specifies the HttpContext to check.

Returns

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

Applies to

Produkt Versionen
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1