MediaWiki
1.28.0
|
Public Member Functions | |
parseCookieResponseHeader ($cookie, $domain) | |
Parse the content of an Set-Cookie HTTP Response header. More... | |
serializeToHttpRequest ($path, $domain) | |
setCookie ($name, $value, $attr) | |
Set a cookie in the cookie jar. More... | |
Private Attributes | |
$cookie = [] | |
Definition at line 22 of file CookieJar.php.
CookieJar::parseCookieResponseHeader | ( | $cookie, | |
$domain | |||
) |
Parse the content of an Set-Cookie HTTP Response header.
string | $cookie | |
string | $domain | Cookie's domain |
Definition at line 72 of file CookieJar.php.
References $cookie, $name, $value, as, list, setCookie(), and Cookie\validateCookieDomain().
CookieJar::serializeToHttpRequest | ( | $path, | |
$domain | |||
) |
string | $path | |
string | $domain |
Definition at line 51 of file CookieJar.php.
References $path, $serialized, and as.
CookieJar::setCookie | ( | $name, | |
$value, | |||
$attr | |||
) |
Set a cookie in the cookie jar.
Make sure only one cookie per-name exists.
string | $name | |
string | $value | |
array | $attr |
Definition at line 32 of file CookieJar.php.
Referenced by parseCookieResponseHeader(), and MWHttpRequest\setCookie().
|
private |
Definition at line 23 of file CookieJar.php.
Referenced by parseCookieResponseHeader().