vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Enum SessionOption

Options altering how sessions are created.

enum SessionOption : int { ... }

Multiple values can be or'ed together.

Enum members

NameDescription
httpOnly Instructs the browser to disallow accessing the session ID from JavaScript.

See Also

Cookie.httpOnly

none No options.
noSameSiteStrict Instructs the browser to allow sending this cookie along with cross-site requests.

By default, the protection is strict. This flag allows to set it to lax. The strict value will prevent the cookie from being sent by the browser to the target site in all cross-site browsing context, even when following a regular link.

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 Also

secure, 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 Also

noSecure, Cookie.secure

See Also

HTTPServerResponse.startSession

Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.