# 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:250

##### Index

### Properties

domain?
enabled
expires
path?
sameSite?
secure

## Properties

### `Optional` domain

domain?: string

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

### enabled

enabled: boolean

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

### expires

expires: number

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

### `Optional` path

path?: string

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

### `Optional` sameSite

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

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

### secure

secure: boolean

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