> -----Original Message-----
> From: Alex Agerholm [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Redirect and cookies
> 
> 
> Hi all,
> 
> I have a problem with redirect.
> 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 ?

Try using a "full" URL, e.g. -url => http://myserver/cgi-bin/xxx.cgi

The "relative" URL may be triggering an internal redirect, which would not
pass the cookie.

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

Reply via email to