SecurityHelperValidateSessionToken Method |
Validates if session token is equal given token. In case that session doesn't contain token returns true.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax 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:
BooleanSee Also