PHP Класс System\cookie

Just another php framework
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$bag array Array of cookie to be written by the response class

Открытые методы

Метод Описание
erase ( $name, $path = '/', $domain = null, $secure = false ) Remove a cookie from the bag
read ( $name, $fallback = null ) : mixed Reads a cookie name from the globals cookies or the class cookie bag
write ( $name, $value, $expiration, $path = '/', $domain = null, $secure = false, $HttpOnly = true ) Adds a cookie to the bag to be written

Описание методов

erase() публичный статический Метод

Remove a cookie from the bag
public static erase ( $name, $path = '/', $domain = null, $secure = false )

read() публичный статический Метод

Reads a cookie name from the globals cookies or the class cookie bag
public static read ( $name, $fallback = null ) : mixed
Результат mixed

write() публичный статический Метод

Adds a cookie to the bag to be written
public static write ( $name, $value, $expiration, $path = '/', $domain = null, $secure = false, $HttpOnly = true )

Описание свойств

$bag публичное статическое свойство

Array of cookie to be written by the response class
public static array $bag
Результат array