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.