HttpCookies.create

Creates a cookie.

class HttpCookies
final
void
create
(,
string name
,
string value
,
long maxAge
,
string path = "/"
)

Parameters

cookieType HttpCookieType

The type of the cookie.

name string

The name of the cookie.

value string

The value of the cookie.

maxAge long

The max-age of the cookie. (Seconds the cookie will be alive.)

path string

The path of the cookie. (Default: "/")

Meta