SecurityHelper ValidateSessionToken Method Kentico 8.1 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.1.5347.20411)

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