Method | Description | |
---|---|---|
delete ( string $name ) : boolean | Remove the given cookie. | |
get ( string $name ) : string | boolean | Get the cookie. | |
getConfig ( ) : |
Returns cookie config from Http object. | |
save ( string $name, string $value, integer $expiration = null, boolean $httpOnly = true, string $path = '/' ) : boolean | Save a cookie. |
Method | Description | |
---|---|---|
init ( ) | Constructor. |
Method | Description | |
---|---|---|
getStorage ( |
Get cookie storage driver. |
public static getConfig ( ) : |
||
return |
public save ( string $name, string $value, integer $expiration = null, boolean $httpOnly = true, string $path = '/' ) : boolean | ||
$name | string | Name of the cookie. |
$value | string | Cookie value. |
$expiration | integer | Timestamp when the cookie should expire. |
$httpOnly | boolean | Is the cookie https-only or not. |
$path | string | Path under which the cookie is accessible. |
return | boolean | True if cookie was save successfully, otherwise false. |