Payment for Help available: http://www.odesk.com/jobs/PHP-Zend_HTTP_Client-Consective-Requests-with-saved-session_~~b3ba9f7fd5236b93
http://www.RentACoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1085544 - Junior jgillespie wrote: > > 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 > > -- View this message in context: http://www.nabble.com/Performing-consecutive-requests-with-one-client-tp21492955p21501295.html Sent from the Zend Framework mailing list archive at Nabble.com.
