Function StackUtility
Set Cookie
Add a cookie to the HTTP response.
Configuration
- Cookie Name: the name of the cookie
- Value: the value to store in the cookie
- Domain: (optional) the domain for which the cookie is valid
- Path: (optional) the path for which the cookie is valid
- Max Age: (optional) number of seconds until the cookie expires
- Expire: (optional) timestamp when the cookie should expire
- Secure: (optional) send cookie only over HTTPS
- Http Only: (optional) prevent JavaScript access to the cookie
- Same Site Mode: one of
None
,Disabled
,Lax
, orStrict
- Session Only: (optional) true to expire cookie on session end