SetCookie -package:servant-auth-server
Trait for a cookie in HTTP responses
Set the cookie on the client.
Set a cookie, with full access to its options (see
SetCookie)
Set a cookie. If the cookie path is not specified, it will default to
"/". Likewise, if the domain is omitted, it will default to the
current page's domain.
Set a cookie value in a response.
Example usage:
response' <- setCookie @"name" -< (response, cookie)
save a single datatype to a specific key in the session
setCookieFilter fn sets the cookie acceptance filter to
fn.
setCookies cookies replaces the set of cookies known to the
browser to
cookies. Useful when wanting to restore cookies
used across
browse invocations.
The domain for which the cookie should be sent. Default value:
Nothing (The browser defaults to the current domain).
The time at which to expire the cookie. Default value:
Nothing (The browser will default to expiring a cookie when
the browser is closed).
Marks the cookie as "HTTP only", i.e. not accessible from Javascript.
Default value: False
The maximum time to keep the cookie, in seconds. Default value:
Nothing (The browser defaults to expiring a cookie when the
browser is closed).
The name of the cookie. Default value: "name"
The URL path for which the cookie should be sent. Default value:
Nothing (The browser defaults to the path of the request that
sets the cookie).
The "same site" policy of the cookie, i.e. whether it should be sent
with cross-site requests. Default value: Nothing
Instructs the browser to only send the cookie over HTTPS. Default
value: False
The value of the cookie. Default value: "value"
Cookies marked Partitioned are double-keyed: by the origin that sets
them and the origin of the top-level page. Default value:
False
Set the value of the “
accept-policy” property. When
overloading is enabled, this is equivalent to
set cookieJar [ #acceptPolicy := value ]
Set the name of cookie where the session ID will be saved. Defaults to
"JSESSIONID", which is a generic cookie name used by many frameworks
thus making it harder to fingerprint this implementation.