#33 Redirect and Cookies...

open
nobody
None
5
2006-02-17
2006-02-17
Russell Jones
No

I have a fairly simple script that logs into a site.
The problem is that when the login function occurs,
this particular site assigns a cookie and then
redirects to a different page.

When I call the $snoopy->headers function to find out
what cookies are set, it displays the headers from the
redirect, and not from when the cookies were set. Thus,
I cannot extract the cookie and maintain the login.

Any ideas?

Discussion

  • Logged In: NO

    I have the same problem when logging into yahoo accounts
    as well, I am considering just using curl directly to deal
    with this issue.

     
  • P!@y3r
    P!@y3r
    2007-04-13

    Logged In: YES
    user_id=1762992
    Originator: NO

    cant it not be done without curl, i am on a freehost..it seems most free hosts dont support curl:(

    or should i just live with that

     
  • P!@y3r
    P!@y3r
    2007-04-13

    Logged In: YES
    user_id=1762992
    Originator: NO

    cant it not be done without curl, i am on a freehost..it seems most free hosts dont support curl:(

    or should i just live with that