Name | Required | Default | Description | Example |
---|---|---|---|---|
path | false | "/" |
Sets the cookie path.
|
- |
expires | false | - | Sets the Expires attribute.
|
- |
maxAge | false | -1 |
Sets the Max-Age for the cookie.
|
- |
domain | false | - | Sets the cookie domain.
|
- |
sameSite | false | LAX |
Sets the SameSite policy.
|
- |
name | true | - | Sets the cookie name.
|
- |
httpOnly | false | false |
Sets the HttpOnly flag.
|
- |
secure | false | false |
Sets the Secure flag.
|
- |
value | true | - | Sets the cookie value.
|
- |