5 Struct N_COOKIE
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_COOKIE

Module: COOKIES: domain-aware HTTP cookie jar

a single stored cookie

#include "n_cookies.h"

Public Attributes

Name
char * value
cookie value
int secure
1 = only sent over HTTPS
char * path
path prefix (e.g.
char * name
cookie name
int http_only
1 = HttpOnly flag was set
long expires
unix expiry timestamp, 0 = session cookie
char * domain
domain (e.g.

Public Attributes Documentation

variable value

char * value;

cookie value

variable secure

int secure;

1 = only sent over HTTPS

variable path

char * path;

path prefix (e.g.

"/")

variable name

char * name;

cookie name

variable http_only

int http_only;

1 = HttpOnly flag was set

variable expires

long expires;

unix expiry timestamp, 0 = session cookie

variable domain

char * domain;

domain (e.g.

"example.com" or ".example.com" for subdomains)