cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_cookie_options Struct Reference

Options for setting a response cookie. More...

#include <cookie.h>

Public Attributes

const char * path
 
const char * domain
 
int max_age_seconds
 
bool http_only
 
bool secure
 
const char * same_site
 

Detailed Description

Options for setting a response cookie.

Definition at line 45 of file cookie.h.

Member Data Documentation

◆ domain

const char* cwist_cookie_options::domain

Definition at line 47 of file cookie.h.

Referenced by cwist_cookie_set().

◆ http_only

bool cwist_cookie_options::http_only

Definition at line 49 of file cookie.h.

Referenced by cwist_cookie_set(), and cwist_session_commit().

◆ max_age_seconds

int cwist_cookie_options::max_age_seconds

< 0 means omit

Definition at line 48 of file cookie.h.

Referenced by cwist_cookie_set(), and cwist_session_commit().

◆ path

const char* cwist_cookie_options::path

Definition at line 46 of file cookie.h.

Referenced by cwist_cookie_set(), and cwist_session_commit().

◆ same_site

const char* cwist_cookie_options::same_site

"Strict", "Lax", or "None"

Definition at line 51 of file cookie.h.

Referenced by cwist_cookie_set(), and cwist_session_commit().

◆ secure

bool cwist_cookie_options::secure

Definition at line 50 of file cookie.h.

Referenced by cwist_cookie_set().


The documentation for this struct was generated from the following file: