This is a discussion on Re: [PHP] libcurl (cookies across cURL session). . .? within the PHP General forums, part of the PHP Programming Forums category; Tom, I tried writing to a local file(./cache/cookiejar), but to no avail. I'll give /tmp a try ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Tom,
I tried writing to a local file(./cache/cookiejar), but to no avail. I'll give /tmp a try to see if that location makes any difference. Permissions aside, I should be able to write where I wish, correct? Thanks, Mike On Sep 23, 2006, at 7:43 AM, php-general-digest-help@lists.php.net wrote: > From: Tom Atkinson <nibbler@coppermine-gallery.net> > Date: September 23, 2006 7:42:32 AM EDT > To: php-general@lists.php.net > Subject: Re: [php] libcurl (cookies across cURL session). . .? > > > Use cURL's own cookie handling features. > > curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); > curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); > > That will store the cookies in the file and read them from there > next time. /tmp may or may not be a suitable location. > |