PHP Classes

Log in and browsing

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Log in and browsing  >  (Un) Subscribe thread alerts  
Subject:Log in and browsing
Summary:How to browse after Log in in a site??
Messages:2
Author:felipe lopez
Date:2008-08-15 07:58:37
Update:2008-08-16 03:38:44
 

  1. Log in and browsing   Reply   Report abuse  
Picture of felipe lopez felipe lopez - 2008-08-15 07:58:37
Hi, first of all I must say it's a great class, thanx man!!

well, let me explain what I'm trying to do, I have used test_http_cookies.php with a little changes and I can log in succesfully in a site with no problems, after I want to browse that site with the new permisions, here are the problems.

I have tryed changing $uri with the page i want example:"/index.php?op=2" in
line 74: "RequestURI"=>$uri,
but I only get error message

Is there a way to set a persistant cookie??, I mean sending a new request (SendRequest) to the same host but with the cookie?

I think I'm doing something bad...or not doint something, please, if you can help me I'll be very thankful with you.

Thanks for reading.



  2. Re: Log in and browsing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-08-16 03:38:44 - In reply to message 1 from felipe lopez
The class resends received cookies if you continue to use the same object, within the same script execution of course.

If you need to save the persistent cookies for reuse later from another script execution, you can use the SavePersistentCookies function to retrieve the persistent cookies and the RestoreCookies function to reset the saved cookies later.