Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface CookieMapSetDeleteOptions
Deprecated
Deprecated

(will be removed in 0.212.0) Use https://deno.land/std/http/cookie.ts instead.

import { type CookieMapSetDeleteOptions } from "https://deno.land/std@0.209.0/http/unstable_cookie_map.ts";

Properties

optional
domain: string

The domain to scope the cookie for.

optional
expires: Date

When the cookie expires.

optional
maxAge: number

Number of seconds until the cookie expires

optional
httpOnly: boolean

A flag that indicates if the cookie is valid over HTTP only.

optional
ignoreInsecure: boolean

Do not error when signing and validating cookies over an insecure connection.

optional
overwrite: boolean

Overwrite an existing value.

optional
path: string

The path the cookie is valid for.

optional
secure: boolean

Override the flag that was set when the instance was created.

optional
sameSite:
| "strict"
| "lax"
| "none"
| boolean

Set the same-site indicator for a cookie.