Click or drag to resize

SessionHandlerTryGetSessionState Method

Tries to get the session state as defined in the request properties dictionary.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static bool TryGetSessionState(
	HttpRequestMessage request,
	string sessionToken,
	out DynamicViewBag sessionState
)
View Source

Parameters

request  HttpRequestMessage
The target HTTP request message.
sessionToken  String
Token used for identifying the session ID in properties dictionary.
sessionState  DynamicViewBag
Session state to return.

Return Value

Boolean
true if session state was successfully accessed; otherwise, false.
See Also