Protege
26-11-2008, 11:20 AM
I've been playing around with Curl (PHP) logging into auth pages then visiting another page that is auth but I have the issue of having to relogin EVERY time, even though it takes 6 hours for the cookie set by the site to expire.
I can login once, then visit a million pages before the page is closed, but keeping that cookie info etc is being a *****
So I thought, could I return the headers from the page (showing cookies etc), then put them in the headers before visiting an auth page? (curlopt_headers)
Whats your views? Got a better method?
If you know a bit about cookiejar, explain please.
I can login once, then visit a million pages before the page is closed, but keeping that cookie info etc is being a *****
So I thought, could I return the headers from the page (showing cookies etc), then put them in the headers before visiting an auth page? (curlopt_headers)
Whats your views? Got a better method?
If you know a bit about cookiejar, explain please.