# Type Alias CookieOptions

#### Description

Control how cookies behave

#### Field

`expires` Number of days for cookie to expire in. Use 0 to expire in same browser session.

#### Field

`secure` Whether the cookie is set securely.

type CookieOptions = {
domain?: string;
enabled: boolean;
expires: number;
path?: string;
sameSite?: "lax" | "strict" | "none";
secure: boolean;
}

- Defined in jslib/src/lib/types/types.ts:252

##### Index

### Properties

domain?
enabled
expires
path?
sameSite?
secure

## Properties

### `Optional` domain

domain?: string

- Defined in jslib/src/lib/types/types.ts:257

### enabled

enabled: boolean

- Defined in jslib/src/lib/types/types.ts:255

### expires

expires: number

- Defined in jslib/src/lib/types/types.ts:253

### `Optional` path

path?: string

- Defined in jslib/src/lib/types/types.ts:256

### `Optional` sameSite

sameSite?: "lax" | "strict" | "none"

- Defined in jslib/src/lib/types/types.ts:258

### secure

secure: boolean

- Defined in jslib/src/lib/types/types.ts:254