Click or drag to resize
CookieHelper.ChangeCookieExpirationInternal Method
Sets the specific cookie expiration time.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
protected virtual void ChangeCookieExpirationInternal(
	string cookieName,
	DateTime expiration,
	bool onlyIfShorter
)

Parameters

cookieName
Type: System.String
Cookie name
expiration
Type: System.DateTime
Expiration time
onlyIfShorter
Type: System.Boolean
If true, the expiration is set only when the expiration is shorter
See Also