CookieHelperChangeCookieExpiration Method |
Sets the specific cookie expiration time.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static void ChangeCookieExpiration(
string cookieName,
DateTime expiration,
bool onlyIfShorter
)
Parameters
- cookieName
- Type: SystemString
Cookie name - expiration
- Type: SystemDateTime
Expiration time - onlyIfShorter
- Type: SystemBoolean
If true, the expiration is set only when the expiration is shorter
See Also