MediaWiki  1.28.0
CookieJar Class Reference

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 = []
 

Detailed Description

Definition at line 22 of file CookieJar.php.

Member Function Documentation

CookieJar::parseCookieResponseHeader (   $cookie,
  $domain 
)

Parse the content of an Set-Cookie HTTP Response header.

Parameters
string$cookie
string$domainCookie's domain
Returns
null

Definition at line 72 of file CookieJar.php.

References $cookie, $name, $value, as, list, setCookie(), and Cookie\validateCookieDomain().

CookieJar::serializeToHttpRequest (   $path,
  $domain 
)
See also
Cookie::serializeToHttpRequest
Parameters
string$path
string$domain
Returns
string

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.

See also
Cookie::set()
Parameters
string$name
string$value
array$attr

Definition at line 32 of file CookieJar.php.

References $name, and $value.

Referenced by parseCookieResponseHeader(), and MWHttpRequest\setCookie().

Member Data Documentation

CookieJar::$cookie = []
private

Definition at line 23 of file CookieJar.php.

Referenced by parseCookieResponseHeader().


The documentation for this class was generated from the following file: