Click or drag to resize
CookieHelperRegisterCookie Method
Registers the given cookie within the system.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static void RegisterCookie(
	string name,
	int level,
	bool isSensitive = false
)

Parameters

name
Type: SystemString
Cookie name
level
Type: SystemInt32
Cookie level
isSensitive (Optional)
Type: SystemBoolean
Cookie sensitivity
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