I don't know if you can do what you are asking for, but you could get around it a little bit. In the curl request you specify the cookie file and the cookie jar file. Once you have made your requests, you could read them with file_get_contents() and put that into a $_SESSION variable. You could then put that information back into the cookie file(s) with file_put_contents() [PHP5] -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -----Original Message----- From: Fernando M. M. [mailto:stormrider@xxxxxxxxxxxxxx] Sent: Friday, December 15, 2006 8:07 AM To: php-general@xxxxxxxxxxxxx Subject: Curl and cookies Hello, I have just started using curl and i have some question about cookies. The website i'm logging in controls everything using cookies (from login to the actions inside it). Is there a way to store the cookie values into a php session variable ($_SESSION['cookie'])? How do i make curl receive the cookie and store in this variable? How do i make curl send it? Thanks, Fernando. -- Blog: http://blog.forumdebian.com.br/fernando Contato: http://www.forumdebian.com.br/fernando/contato.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php