Enum SessionOption
Options altering how sessions are created.
enum SessionOption
: int { ... }
Multiple values can be or'ed together.
Enum members
Name | Description |
---|---|
httpOnly
|
Instructs the browser to disallow accessing the session ID from JavaScript.
See AlsoCookie.httpOnly |
none
|
No options. |
noSameSiteStrict
|
Instructs the browser to allow sending this cookie along with cross-site requests.
By default, the protection is |
noSecure
|
Instructs the browser to allow sending the session ID over unencrypted
connections.
By default, the type of the connection on which the session is started will be used to determine if secure or noSecure is used. See Alsosecure, Cookie.secure |
secure
|
Instructs the browser to disallow sending the session ID over
unencrypted connections.
By default, the type of the connection on which the session is started will be used to determine if secure or noSecure is used. See AlsonoSecure, Cookie.secure |
See Also
HTTPServerResponse.startSession