Factory
interface Factory (View source)
Methods
Cookie
make(
string $name,
string $value,
int $minutes,
string $path = null,
string $domain = null,
bool $secure = false,
bool $httpOnly = true)
Create a new cookie instance.
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).
Cookie
forget(
string $name,
string $path = null,
string $domain = null)
Expire the given cookie.
Details
at line line 19
Cookie
make(
string $name,
string $value,
int $minutes,
string $path = null,
string $domain = null,
bool $secure = false,
bool $httpOnly = true)
Create a new cookie instance.
at line line 32
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 line 42
Cookie
forget(
string $name,
string $path = null,
string $domain = null)
Expire the given cookie.