Click or drag to resize
SecurityHelperValidateSessionToken Method
Validates if session token is equal given token. In case that session doesn't contain token returns true.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static bool ValidateSessionToken(
	string token,
	string sessionTokenName = null
)

Parameters

token
Type: SystemString
Token to validate.
sessionTokenName (Optional)
Type: SystemString
Name of the session token to compare the token value with. If no token name is defined, SESSION_TOKEN_HEADER is used instead.

Return Value

Type: Boolean
See Also