phpbuzz

What is the cookieJar?


What is the cookie Jar class from Buzz used for?

https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Cookie/Jar.php

For example when I'm making a request:

$browser = new Buzz\Browser();
$response = $browser->get('http://www.google.com');

How should i use the cookie thingy?


Solution

  • The cookies for your requests are stored in there. If you want to keep them you have to persist this cookie jar.