in reply to Re: cookies and redirecting
in thread cookies and redirecting

s/header/redirect/;

Replies are listed 'Best First'.
Re: (Ovid) Re: Re: cookies and redirecting
by outcast (Monk) on Jun 19, 2001 at 01:06 UTC
    i did do that, and redirect with out setting the cookie. Could the problem i am doing this on IIS?

      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.

        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