[Pro] PHP, cURL and Cookies

Walter, instead of saving the cookie inside a sub-folder of /public_html/ and using 777 permissions on that sub-folder (as I have been doing), I could opt to save the cookie within “/tmp/” which is in the root directory my server and already has 777 permissions. That should be secure enough, shouldn’t it?

The relevant section of the PHP code would then become something like this:

    curl_setopt($curl, CURLOPT_COOKIEJAR, 'root/tmp/fmi-cookie'); //copies cookie to my server
    curl_setopt($curl, CURLOPT_COOKIEFILE, 'root/tmp/fmi-cookie');

Regardless, I still don’t understand how to properly deal with JSESSIONID, as described in my earlier post.

–James W.


dynamo mailing list
email@hidden
Update your subscriptions at: