Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: (Ovid) Re: Re: cookies and redirecting

by Ovid (Cardinal)
on Jun 19, 2001 at 02:06 UTC ( [id://89492]=note: print w/replies, xml ) Need Help??


in reply to Re: (Ovid) Re: Re: cookies and redirecting
in thread cookies and redirecting

IIS versions 3, 4, and 5 have a bug that causes them to ignore the cookie header on a redirect. You'll need to use a non-parsed header (NPH) script or find an alternative.

print $query->redirect( -uri => 'http://www.perlmonks.org/', -cookie => $cookie, -nph => 1 );

If I recall correctly, the way to get IIS to recognize the script as NPH is to prepend 'nph-' (without the quotes) to the script name. In other words, 'myscript.cgi' becomes 'nph-myscript.cgi'.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: Re: Re: (Ovid) Re: Re: cookies and redirecting
by LeGo (Chaplain) on Jun 19, 2001 at 02:40 UTC
    I am having a similiar problem with this but I am using apache. I will redirect but not have the cookie be set.

    My problem is here CGI and Redirect/URI/Location.

    LeGo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89492]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2025-03-19 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (59 votes). Check out past polls.