CookieOptions
Configuration options for HTTP cookies in Buntal applications.
Source
Type Definition
type CookieOptions = {
  maxAge?: number
  expires?: Date
  path?: string
  domain?: string
  secure?: boolean
  httpOnly?: boolean
  sameSite?: 'Strict' | 'Lax' | 'None'
}Properties
| Property | Type | Required | Default | Description | 
|---|---|---|---|---|
maxAge | number | ❌ | - | Cookie lifetime in seconds | 
expires | Date | ❌ | - | Expiration date for the cookie | 
path | string | ❌ | / | URL path where the cookie is valid | 
domain | string | ❌ | - | Domain where the cookie is valid | 
secure | boolean | ❌ | false | Whether cookie should only be sent over HTTPS | 
httpOnly | boolean | ❌ | false | Whether cookie should be inaccessible to JavaScript | 
sameSite | 'Strict' | 'Lax' | 'None' | ❌ | Lax | Controls cross-site request behavior | 
Last modified: 2025-06-10