Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
init ( ) | Constructor. |
Метод | Описание | |
---|---|---|
getStorage ( |
Get cookie storage driver. |
public static getConfig ( ) : |
||
Результат |
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. |
Результат | boolean | True if cookie was save successfully, otherwise false. |