Click or drag to resize

SessionHandlerTryGetSessionID Method

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

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public static bool TryGetSessionID(
	HttpRequestMessage request,
	string sessionToken,
	out Guid sessionID
)
View Source

Parameters

request  HttpRequestMessage
The target HTTP request message.
sessionToken  String
Token used for identifying the session ID in properties dictionary.
sessionID  Guid
Validated session ID to return.

Return Value

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