Avolutions\Http\CookieCollection
The CookieCollection provides the functionality to store and retrieve Cookie objects.
Methods
Method | Visibility | Description |
---|---|---|
add() | public | Adds a new Cookie object. Will call the native php setcookie method. |
delete() | public | Deletes a cookie by its name. |
get() | public | Returns the value of a cookie by its name. |
Method Details
add()
Adds a new Cookie object. Will call the native php setcookie method.
public
static add(Cookie $Cookie) : mixed
Parameters
Cookie
$Cookie
The Cookie object to add.