On this page
Class CookieCollection
Container class for cookies used in Http\Client.
Provides cookie jar like features for storing cookies between requests, as well as appending cookies to new requests.
Properties summary
-
$_cookies
protectedarray
Method Summary
-
get() publicGet stored cookies for a URL.
-
getAll() publicGet all the stored cookies.
-
store() publicStore the cookies from a response.
Method Detail
get()source public
get( string $url )
Get stored cookies for a URL.
Finds matching stored cookies and returns a simple array of name => value
Parameters
-
string
$url
- The URL to find cookies for.
Returns
arraystore()source public
store( Cake\Network\Http\Response $response , string $url )
Store the cookies from a response.
Store the cookies that haven't expired. If a cookie has been expired and is currently stored, it will be removed.
Parameters
Cake\Network\Http\Response
$response
- The response to read cookies from
-
string
$url
- The request URL used for default host/path values.
Properties detail
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/3.2/class-Cake.Network.Http.CookieCollection.html