vibe.d beta banner
get vibe.d
0.7.30

Function HTTPServerResponse.setCookie

Sets the specified cookie value.

Prototype

Cookie setCookie(
  string name,
  string value,
  string path = "/",
  Cookie.Encoding encoding = cast(Encoding)0
);

Parameters

NameDescription
name Name of the cookie
value New cookie value - pass null to clear the cookie
path Path (as seen by the client) of the directory tree in which the cookie is visible
Authors

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

Copyright

© 2012-2013 RejectedSoftware e.K.

License

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