CookieHelperSetValueInternal Method |
Sets the cookie.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax protected virtual void SetValueInternal(
string name,
string value,
ref string path,
DateTime expires,
Nullable<bool> httpOnly,
string domain,
SameSiteMode sameSite,
bool secure
)
Parameters
- name
- Type: SystemString
Cookie name - value
- Type: SystemString
Cookie value - path
- Type: SystemString
Cookie virtual path - expires
- Type: SystemDateTime
Expiration time - httpOnly
- Type: SystemNullableBoolean
Defines httpOnly flag. - domain
- Type: SystemString
Domain to associate the cookie with. - sameSite
- Type: CMS.BaseSameSiteMode
Same site mode of the cookie. - secure
- Type: SystemBoolean
Indicates whether secure attribute should be set for the cookie.
See Also