CookieJar
class CookieJar implements QueueingFactory
Properties
protected string | $path | The default path (if specified). |
|
protected string | $domain | The default domain (if specified). |
|
protected bool | $secure | The default secure setting (defaults to false). |
|
protected array | $queued | All of the cookies queued for sending. |
Methods
Create a new cookie instance.
Create a cookie that lasts "forever" (five years).
Expire the given cookie.
Determine if a cookie has been queued.
Get a queued cookie instance.
Queue a cookie to send with the next response.
Remove a cookie from the queue.
Get the path and domain, or the default values.
Set the default path and domain for the jar.
Get the cookies which have been queued for the next request.
Details
at line 52
Cookie
make(string $name, string $value, int $minutes = 0, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)
Create a new cookie instance.
at line 72
Cookie
forever(string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)
Create a cookie that lasts "forever" (five years).
at line 85
Cookie
forget(string $name, string $path = null, string $domain = null)
Expire the given cookie.
at line 96
bool
hasQueued(string $key)
Determine if a cookie has been queued.
at line 108
Cookie
queued(string $key, mixed $default = null)
Get a queued cookie instance.
at line 119
void
queue(array ...$parameters)
Queue a cookie to send with the next response.
at line 136
unqueue(string $name)
Remove a cookie from the queue.
at line 149
protected array
getPathAndDomain(string $path, string $domain, bool $secure = false)
Get the path and domain, or the default values.
at line 162
$this
setDefaultPathAndDomain(string $path, string $domain, bool $secure = false)
Set the default path and domain for the jar.
at line 174
array
getQueuedCookies()
Get the cookies which have been queued for the next request.