Method |
Description |
|
delete ( string $name ) : static |
Deletes a cookie by its name |
|
get ( string $name ) : mixed | null |
Gets a cookie |
|
has ( string $name ) : boolean |
Check if a cookie is defined in the bag or exists in the $_COOKIE |
|
send ( ) : void |
Sends the cookies to the client
Cookies are not sent if headers are sent in the current request |
|
set ( string $name, mixed $value, integer $expire, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true ) : static |
Sets a cookie to be sent at the end of the request |
|