Skip to content

RES_COOKIE

Jurek Muszyński edited this page Jan 4, 2022 · 1 revision

void RES_COOKIE(const char *name, const char *value, int days)

Description

Sets response cookie.

name and value combined length cannot exceed NPP_CUST_HDR_LEN-1.

Setting days to 0 will set cookie without Expires clause, so it will be valid until the end of the current browser session.

Returns

None

Example

RES_COOKIE("sess_data", sess_data, 30);
Clone this wiki locally