PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to make cookies easily follow multiple requests

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP
View previous topic :: View next topic  
Author Message
Ethorsen



Joined: 15 Jun 2007
Posts: 2

PostPosted: Fri Jun 15, 2007 9:31 pm    Post subject: How to make cookies easily follow multiple requests Reply with quote

Hello everyone,

I have to access multiple times a website that require authentication. This is not basic http authentication but a self managed form/cookie authentication.

Is there a way to tell the HTTP_Request class to just repush cookies in the same state it is received in between each request.

Here's what i came up with and this is NOT working.

$sessionCookies =& $req->getResponseCookies();
$req->reset();

foreach($sessionCookies as $key => $value)
$req->addCookie($value['name'], $value['value']);


Thank you all for your help.
Ethor
Back to top
View user's profile Send private message
Ethorsen



Joined: 15 Jun 2007
Posts: 2

PostPosted: Mon Jun 18, 2007 9:41 pm    Post subject: Reply with quote

Problem solved, I found a solution.

Thx
Back to top
View user's profile Send private message
brent



Joined: 27 Jun 2007
Posts: 1

PostPosted: Wed Jun 27, 2007 8:19 am    Post subject: What was the solution Reply with quote

Hi,

I've got exactly the same problem that you had. Are you able to post your solution please.

Also I think my problem is due to the webpage checking to see if my browser will accept cookies. Everytime I go the page I get the message that 'This website requires the use of cookies. It appears you have them turned off. blah blah blah.' Any help in overcoming this issue would be greatly appreciated.

Thanks,

Brent
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement