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