set()
set(string $name, string $value, integer|boolean $expire, string $path = '/', string $domain = '', boolean $secure = false, boolean $httponly = true) : boolean
Wrapper for PHP's setcookie with
Parameters
string | $name | Cookie name |
string | $value | Cookie value |
integer|boolean | $expire | False if deleting a cookie, 0 for session-length cookie, expiration time in seconds otherwise |
string | $path | The path the cookie will be available at |
string | $domain | The domain the cookie will be available at |
boolean | $secure | Whether to only transfer the cookie via HTTPS. |
boolean | $httponly | Whether to only allow server-side usage of the cookie |