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: 13.0.131
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