Hi Curtis,

Thanks for your help, I am actually on IIS so you have saved me a lot of
troubles.
Do you know how to work around this ?
>From the microsoft article below it seems like running in nph mode should
solve it but redirect(-uri => xxx.cgi, -cookie => $cookie, -nph => 1) does
not solve it and neither does using the -nph pragma in the the use CGI line.

Regards
Alex

-----Original Message-----
From: Ovid [mailto:[EMAIL PROTECTED]]
Sent: 1. september 2002 03:17
To: Alex Agerholm; [EMAIL PROTECTED]
Subject: Re: Redirect and cookies


> I have made a login system and when the user has logged in correctly I set
a
> cookie and redirects the user to the first page.
> But on all pages (including the first one) I make a check to see if the
user
> is logged in based on the cookie.
>
> When I redirect from the login page to the first page I therefore need to
> give the cookie along like:  redirect( -uri=>xxx.cgi, -cookie=>$cookie);
> BUT IT DOES NOT WORK - my xxx.cgi script does not get the cookie.
> What can I do to fix this ?

Hi Alex,

Is there any chance that you are on IIS?  IIS has had a long-standing bug in
version 3.0, 4.0, and
5.0 where you cannot set a cookie and do a redirect at the same time unless
you switch to
non-parsed header scripts.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q176113

Cheers,
Curtis "Ovid" Poe

=====
"Ovid" on http://www.perlmonks.org/
Someone asked me how to count to 10 in Perl:
push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//;
shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to