Creates a cookie (an instance of this class) by a provided
raw header string like "foo=507d9f20317a5; path=/; domain=.example.org"
This is is an implementation of the algorithm explained in RFC 6265, Section 5.2
A basic statement of this algorithm is to "ignore the set-cookie-string entirely"
in case a required condition is not met. In these cases this function will return NULL
rather than the created cookie.
public static createFromRawSetCookieHeader ( string $header ) : |
||
$header | string | The Set-Cookie string without the actual "Set-Cookie:" part |
return |