ID: 27616 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: cURL related Operating System: Linux 2.4.22 PHP Version: 5CVS-2004-03-16 (dev) New Comment:
We have to mark it as "bogus" then, meaning that it is not really a problem in PHP. Previous Comments: ------------------------------------------------------------------------ [2004-03-29 17:34:24] daniel at haxx dot se Unfortunately, libcurl doesn't provide a rich enough API for the COOKIEJAR/COOKIEFILE to get stored in memory or similar. That is still in the TODO for the library. Until that happens, getting the jar written to a file is the only supported way. ------------------------------------------------------------------------ [2004-03-16 19:08:31] [EMAIL PROTECTED] Description: ------------ When you create more than one Cookie Jar file using cURL, and using an object with a constructor and destructor to create/delete the temporary file, only one of the two cookie jar files is deleted, even though the destructor reports that deletion of both was successful. If you find any website that requires you to login, you should be able to reproduce this. Personally, I think there needs to be an option to use PHP writable streams for the COOKIEJAR/COOKIEFILE cURL Options, to allow more freedom to store the data. I would hope that would allow you to store the cookies in memory while the page executes, and have them cleared from memory once the request has completed successfully. Reproduce code: --------------- http://www.nightsys.net/cookiebugs/ This URL has all the source code required. Expected result: ---------------- Both Cookie Jars to be deleted. Actual result: -------------- Only one of the two cookie jars are deleted. If you tell it to just unset one of the two objects, and only make 2 of the 3 cURL requests, the jar is removed. It only seems to be an issue when two are unset one after the other. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27616&edit=1