Click or drag to resize
ICurrentCookieLevelProviderGetCurrentCookieLevel Method
Gets the cookie level of the current request.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
int GetCurrentCookieLevel()

Return Value

Type: Int32
Returns the cookie level of the current request.
Remarks

If the cookie level is not set yet, the application setting "CMSDefaultCookieLevel" specified in the settings is used.

When calling this method, CookieLevel response cookie is set.

Inbuilt cookie level values are represented by the constants in the CookieLevel class.

See Also