I've tried following the Zend_HTTP_Client: "Example 23.14. Performing
consecutive requests with one client", in order to authenticate once
and allow multiple requests to the script to be made and I have
verified the $_SESSION['cookiejar'] is created, however upon next
request the script authenticates again instead of using the session.
Is there a better way of doing so? Here's my flow:

fetch.php
-> check for if(isset($_SESSION['cookiejar']) &&
$_SESSION['cookiejar'] instanceof Zend_Http_CookieJar) -set cookiejar
to session['cookiejar]
-> else authenticate on SSL site
-> request ssl url
-> return $response->getBody();
-> store for next request $_SESSION['cookiejar'] = $client->getCookieJar();

Looks like this is failing at instanceof
Eventually I want to be able to use one session for requests from many
users. I can't figure out how to get this to keep session active.

-- 
Thanks,

Junior

Reply via email to