Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($name, $value=null, $expire=0, $path='/', $domain=null, $secure=false, $httpOnly=true, $raw=false, $sameSite=null) | |
__construct (string $name, string $value=null, $expire=0, ?string $path='/', string $domain=null, ?bool $secure=false, bool $httpOnly=true, bool $raw=false, string $sameSite=null) | |
__toString () | |
__toString () | |
getDomain () | |
getDomain () | |
getExpiresTime () | |
getExpiresTime () | |
getMaxAge () | |
getMaxAge () | |
getName () | |
getName () | |
getPath () | |
getPath () | |
getSameSite () | |
getSameSite () | |
getValue () | |
getValue () | |
isCleared () | |
isCleared () | |
isHttpOnly () | |
isHttpOnly () | |
isRaw () | |
isRaw () | |
isSecure () | |
isSecure () | |
setSecureDefault (bool $default) | |
Static Public Member Functions | |
static | create (string $name, string $value=null, $expire=0, ?string $path='/', string $domain=null, bool $secure=null, bool $httpOnly=true, bool $raw=false, ?string $sameSite=self::SAMESITE_LAX) |
static | fromString ($cookie, $decode=false) |
static | fromString ($cookie, $decode=false) |
Data Fields | |
const | SAMESITE_LAX = 'lax' |
const | SAMESITE_NONE = 'none' |
const | SAMESITE_STRICT = 'strict' |
Protected Attributes | |
$domain | |
$expire | |
$httpOnly | |
$name | |
$path | |
$secure | |
$value | |
Represents a cookie.
Definition at line 19 of file lib/vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::__construct | ( | $name, | |
$value = null , |
|||
$expire = 0 , |
|||
$path = '/' , |
|||
$domain = null , |
|||
$secure = false , |
|||
$httpOnly = true , |
|||
$raw = false , |
|||
$sameSite = null |
|||
) |
Constructor.
string | $name | The name of the cookie |
string | null | $value | The value of the cookie |
int | string | \DateTimeInterface | $expire | The time the cookie expires |
string | $path | The path on the server in which the cookie will be available on |
string | null | $domain | The domain that the cookie is available to |
bool | $secure | Whether the cookie should only be transmitted over a secure HTTPS connection from the client |
bool | $httpOnly | Whether the cookie will be made accessible only through the HTTP protocol |
bool | $raw | Whether the cookie value should be sent with no url encoding |
string | null | $sameSite | Whether the cookie will be available for cross-site requests |
Definition at line 98 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$domain, Symfony\Component\HttpFoundation\Cookie\$expire, Symfony\Component\HttpFoundation\Cookie\$httpOnly, Symfony\Component\HttpFoundation\Cookie\$name, Symfony\Component\HttpFoundation\Cookie\$path, Symfony\Component\HttpFoundation\Cookie\$secure, and Symfony\Component\HttpFoundation\Cookie\$value.
Symfony\Component\HttpFoundation\Cookie::__construct | ( | string | $name, |
string | $value = null , |
||
$expire = 0 , |
|||
?string | $path = '/' , |
||
string | $domain = null , |
||
?bool | $secure = false , |
||
bool | $httpOnly = true , |
||
bool | $raw = false , |
||
string | $sameSite = null |
||
) |
string | $name | The name of the cookie |
string | null | $value | The value of the cookie |
int | string | \DateTimeInterface | $expire | The time the cookie expires |
string | $path | The path on the server in which the cookie will be available on |
string | null | $domain | The domain that the cookie is available to |
bool | null | $secure | Whether the client should send back the cookie only over HTTPS or null to auto-enable this when the request is already using HTTPS |
bool | $httpOnly | Whether the cookie will be made accessible only through the HTTP protocol |
bool | $raw | Whether the cookie value should be sent with no url encoding |
string | null | $sameSite | Whether the cookie will be available for cross-site requests |
Definition at line 94 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$domain, Symfony\Component\HttpFoundation\Cookie\$expire, Symfony\Component\HttpFoundation\Cookie\$httpOnly, Symfony\Component\HttpFoundation\Cookie\$name, Symfony\Component\HttpFoundation\Cookie\$path, Symfony\Component\HttpFoundation\Cookie\$secure, and Symfony\Component\HttpFoundation\Cookie\$value.
Symfony\Component\HttpFoundation\Cookie::__toString | ( | ) |
Returns the cookie as a string.
Definition at line 145 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\getDomain(), Symfony\Component\HttpFoundation\Cookie\getExpiresTime(), Symfony\Component\HttpFoundation\Cookie\getMaxAge(), Symfony\Component\HttpFoundation\Cookie\getName(), Symfony\Component\HttpFoundation\Cookie\getPath(), Symfony\Component\HttpFoundation\Cookie\getSameSite(), Symfony\Component\HttpFoundation\Cookie\getValue(), Symfony\Component\HttpFoundation\Cookie\isHttpOnly(), Symfony\Component\HttpFoundation\Cookie\isRaw(), and Symfony\Component\HttpFoundation\Cookie\isSecure().
Symfony\Component\HttpFoundation\Cookie::__toString | ( | ) |
Returns the cookie as a string.
Definition at line 147 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\getDomain(), Symfony\Component\HttpFoundation\Cookie\getExpiresTime(), Symfony\Component\HttpFoundation\Cookie\getMaxAge(), Symfony\Component\HttpFoundation\Cookie\getName(), Symfony\Component\HttpFoundation\Cookie\getPath(), Symfony\Component\HttpFoundation\Cookie\getSameSite(), Symfony\Component\HttpFoundation\Cookie\getValue(), Symfony\Component\HttpFoundation\Cookie\isHttpOnly(), Symfony\Component\HttpFoundation\Cookie\isRaw(), and Symfony\Component\HttpFoundation\Cookie\isSecure().
|
static |
Definition at line 76 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$domain, Symfony\Component\HttpFoundation\Cookie\$expire, Symfony\Component\HttpFoundation\Cookie\$httpOnly, Symfony\Component\HttpFoundation\Cookie\$name, Symfony\Component\HttpFoundation\Cookie\$path, Symfony\Component\HttpFoundation\Cookie\$secure, and Symfony\Component\HttpFoundation\Cookie\$value.
|
static |
Creates cookie from raw header string.
string | $cookie | |
bool | $decode |
Definition at line 42 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$value.
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\set(), Symfony\Component\HttpFoundation\Tests\CookieTest\testFromString(), and Symfony\Component\HttpFoundation\Tests\CookieTest\testFromStringWithHttpOnly().
|
static |
Creates cookie from raw header string.
string | $cookie | |
bool | $decode |
Definition at line 49 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$name, Symfony\Component\HttpFoundation\Cookie\$value, Symfony\Component\HttpFoundation\HeaderUtils\combine(), and Symfony\Component\HttpFoundation\HeaderUtils\split().
Symfony\Component\HttpFoundation\Cookie::getDomain | ( | ) |
Gets the domain that the cookie is available to.
Definition at line 207 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$domain.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString(), Symfony\Component\HttpFoundation\Test\Constraint\ResponseCookieValueSame\getCookie(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\Cookie::getDomain | ( | ) |
Gets the domain that the cookie is available to.
Definition at line 215 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$domain.
Symfony\Component\HttpFoundation\Cookie::getExpiresTime | ( | ) |
Gets the time the cookie expires.
Definition at line 217 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$expire.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::getExpiresTime | ( | ) |
Gets the time the cookie expires.
Definition at line 225 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$expire.
Symfony\Component\HttpFoundation\Cookie::getMaxAge | ( | ) |
Gets the max-age attribute.
Definition at line 227 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::getMaxAge | ( | ) |
Gets the max-age attribute.
Definition at line 235 of file vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::getName | ( | ) |
Gets the name of the cookie.
Definition at line 187 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$name.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString(), Symfony\Component\HttpFoundation\Test\Constraint\ResponseCookieValueSame\getCookie(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\Cookie::getName | ( | ) |
Gets the name of the cookie.
Definition at line 195 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$name.
Symfony\Component\HttpFoundation\Cookie::getPath | ( | ) |
Gets the path on the server in which the cookie will be available on.
Definition at line 237 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$path.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString(), Symfony\Component\HttpFoundation\Test\Constraint\ResponseCookieValueSame\getCookie(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\Cookie::getPath | ( | ) |
Gets the path on the server in which the cookie will be available on.
Definition at line 247 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$path.
Symfony\Component\HttpFoundation\Cookie::getSameSite | ( | ) |
Gets the SameSite attribute.
Definition at line 287 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::getSameSite | ( | ) |
Gets the SameSite attribute.
Definition at line 297 of file vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::getValue | ( | ) |
Gets the value of the cookie.
Definition at line 197 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$value.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::getValue | ( | ) |
Gets the value of the cookie.
Definition at line 205 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$value.
Symfony\Component\HttpFoundation\Cookie::isCleared | ( | ) |
Whether this cookie is about to be cleared.
Definition at line 267 of file lib/vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::isCleared | ( | ) |
Whether this cookie is about to be cleared.
Definition at line 277 of file vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::isHttpOnly | ( | ) |
Checks whether the cookie will be made accessible only through the HTTP protocol.
Definition at line 257 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$httpOnly.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::isHttpOnly | ( | ) |
Checks whether the cookie will be made accessible only through the HTTP protocol.
Definition at line 267 of file vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$httpOnly.
Symfony\Component\HttpFoundation\Cookie::isRaw | ( | ) |
Checks if the cookie value should be sent with no url encoding.
Definition at line 277 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::isRaw | ( | ) |
Checks if the cookie value should be sent with no url encoding.
Definition at line 287 of file vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::isSecure | ( | ) |
Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.
Definition at line 247 of file lib/vendor/symfony/http-foundation/Cookie.php.
References Symfony\Component\HttpFoundation\Cookie\$secure.
Referenced by Symfony\Component\HttpFoundation\Cookie\__toString().
Symfony\Component\HttpFoundation\Cookie::isSecure | ( | ) |
Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.
Definition at line 257 of file vendor/symfony/http-foundation/Cookie.php.
Symfony\Component\HttpFoundation\Cookie::setSecureDefault | ( | bool | $default | ) |
bool | $default | The default value of the "secure" flag when it is set to null |
Definition at line 305 of file vendor/symfony/http-foundation/Cookie.php.
|
protected |
Definition at line 23 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), and Symfony\Component\HttpFoundation\Cookie\getDomain().
|
protected |
Definition at line 24 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), and Symfony\Component\HttpFoundation\Cookie\getExpiresTime().
|
protected |
Definition at line 27 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), and Symfony\Component\HttpFoundation\Cookie\isHttpOnly().
|
protected |
Definition at line 21 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), Symfony\Component\HttpFoundation\Cookie\fromString(), and Symfony\Component\HttpFoundation\Cookie\getName().
|
protected |
Definition at line 25 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), and Symfony\Component\HttpFoundation\Cookie\getPath().
|
protected |
Definition at line 26 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), and Symfony\Component\HttpFoundation\Cookie\isSecure().
|
protected |
Definition at line 22 of file lib/vendor/symfony/http-foundation/Cookie.php.
Referenced by Symfony\Component\HttpFoundation\Cookie\__construct(), Symfony\Component\HttpFoundation\Cookie\create(), Symfony\Component\HttpFoundation\Cookie\fromString(), and Symfony\Component\HttpFoundation\Cookie\getValue().
const Symfony\Component\HttpFoundation\Cookie::SAMESITE_LAX = 'lax' |
Definition at line 31 of file lib/vendor/symfony/http-foundation/Cookie.php.
const Symfony\Component\HttpFoundation\Cookie::SAMESITE_NONE = 'none' |
Definition at line 21 of file vendor/symfony/http-foundation/Cookie.php.
const Symfony\Component\HttpFoundation\Cookie::SAMESITE_STRICT = 'strict' |
Definition at line 32 of file lib/vendor/symfony/http-foundation/Cookie.php.