php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
head.h File Reference

Go to the source code of this file.

Macros

#define COOKIE_EXPIRES   "; expires="
 
#define COOKIE_MAX_AGE   "; Max-Age="
 
#define COOKIE_DOMAIN   "; domain="
 
#define COOKIE_PATH   "; path="
 
#define COOKIE_SECURE   "; secure"
 
#define COOKIE_HTTPONLY   "; HttpOnly"
 
#define COOKIE_SAMESITE   "; SameSite="
 

Functions

 PHP_RINIT_FUNCTION (head)
 
PHPAPI bool php_header (void)
 
PHPAPI zend_result php_setcookie (zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, bool secure, bool httponly, zend_string *samesite, bool url_encode)
 

Macro Definition Documentation

◆ COOKIE_DOMAIN

#define COOKIE_DOMAIN   "; domain="

Definition at line 22 of file head.h.

◆ COOKIE_EXPIRES

#define COOKIE_EXPIRES   "; expires="

Definition at line 20 of file head.h.

◆ COOKIE_HTTPONLY

#define COOKIE_HTTPONLY   "; HttpOnly"

Definition at line 25 of file head.h.

◆ COOKIE_MAX_AGE

#define COOKIE_MAX_AGE   "; Max-Age="

Definition at line 21 of file head.h.

◆ COOKIE_PATH

#define COOKIE_PATH   "; path="

Definition at line 23 of file head.h.

◆ COOKIE_SAMESITE

#define COOKIE_SAMESITE   "; SameSite="

Definition at line 26 of file head.h.

◆ COOKIE_SECURE

#define COOKIE_SECURE   "; secure"

Definition at line 24 of file head.h.

Function Documentation

◆ php_header()

PHPAPI bool php_header ( void )

Definition at line 70 of file head.c.

◆ PHP_RINIT_FUNCTION()

PHP_RINIT_FUNCTION ( head )
extern

◆ php_setcookie()

PHPAPI zend_result php_setcookie ( zend_string * name,
zend_string * value,
time_t expires,
zend_string * path,
zend_string * domain,
bool secure,
bool httponly,
zend_string * samesite,
bool url_encode )

Definition at line 80 of file head.c.