PHP Classes

Cookies and Login Help

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Cookies and Login Help  >  (Un) Subscribe thread alerts  
Subject:Cookies and Login Help
Summary:Help with not having to login everytime.
Author:tutu dragon
Date:2010-12-24 00:41:12
Update:2010-12-24 03:15:33

  1. Cookies and Login Help   Reply   Report abuse  
tutu dragon - 2010-12-24 00:41:12
First of all, thanks for this wonderful class, its great.

So, now to my question

I have set it up so that it logs in to a site and then fetches a page.

But is there a way to actually save the cookie so that the script doesn't have to login everytime it is loaded.

  2. Re: Cookies and Login Help   Reply   Report abuse  
Manuel Lemos - 2010-12-24 03:15:33 - In reply to message 1 from tutu dragon
You can call the SavePersistentCookies functions to retrieve an array of cookies that you can save somewhere.

Then you call the RestoreCookies functions to load the saved the cookies array.