Click or drag to resize
CookieHelperRegisterCookie Method (String, Int32)
Registers the given cookie within the system.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static void RegisterCookie(
	string name,
	int level
)

Parameters

name
Type: SystemString
Cookie name
level
Type: SystemInt32
Cookie level
Remarks

Cookies which are registered within the system are deleted automatically when the current cookie level is decreased below their registered value.

Current cookie level must be decreased via the SetCurrentCookieLevel(Int32) method to automatically handle the cookie deletion.

See Also