Function HTTPServerResponse.setCookie
Sets the specified cookie value.
Cookie setCookie
(
string name,
string value,
string path = "/",
Cookie . Encoding encoding = cast(Encoding)0
) @safe;
Parameters
Name | Description |
---|---|
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 |
encoding | Optional encoding (url, raw), default to URL encoding |