SecurityHelper ValidateSessionToken Method Kentico 8.0 API Reference
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: 8.0.0.0 (8.0.5239.26125)

Parameters

token
Type: OnlineSystem String
Token to validate.
sessionTokenName (Optional)
Type: OnlineSystem String
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: OnlineBoolean
See Also