View Full Version : Using CURL cookies from previous sessions

02-22-2008, 11:56 PM
I am trying to create a PHP script that will login to a site by visiting one page and then access another protected page on that site. This is all easy enough to do. However, I want to know how I can get CURL to carry over the cookies for each run that the site sets to store the login session so that the script only needs to visit the login page if the cookie has expired.