> 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]

Reply via email to