Cookie
in package
Table of Contents
Methods
- clear() : void
- Regenerates the whole session cookie.
- get() : mixed
- Returns value of cookie by $key.
- set() : bool
- Sets/mames properly a cookie with value and params.
Methods
clear()
Regenerates the whole session cookie.
public
clear([string $cookie = null ]) : void
Parameters
- $cookie : string = null
get()
Returns value of cookie by $key.
public
get(string $key) : mixed
Parameters
- $key : string
set()
Sets/mames properly a cookie with value and params.
public
set(string $key, mixed $value, int|array<string|int, mixed> $params[, string $path = '/' ][, string $domain = '' ][, bool $secure = false ][, bool $httponly = false ]) : bool
Parameters
- $key : string
- $value : mixed
- $params : int|array<string|int, mixed>
- $path : string = '/'
- $domain : string = ''
- $secure : bool = false
- $httponly : bool = false