class CookieFactory
Properties
protected | $prefix | |||
protected | $path | |||
protected | $domain | |||
protected | $secure | |||
protected | $samesite |
Methods
SetCookie
make(string $name, string|null $value = null, int|null $maxAge = null)
<p>Make a new cookie instance.</p>
Details
at
line 24
__construct(Config $config)
at
line 43
SetCookie
make(string $name, string|null $value = null, int|null $maxAge = null)
<p>Make a new cookie instance.</p>
<p>This method returns a cookie instance for use with the Set-Cookie HTTP header. It will be pre-configured according to Flarum's base URL and protocol.</p>
at
line 71
SetCookie
expire(string $name)
<p>Make an expired cookie instance.</p>
at
line 79
string
getName(string $name)
<p>Get a cookie name.</p>