Re: Quick Cookie Question, with CGI.pm.
by other posts by this author
May 16 2002 1:50AM messages near this date
view in the new Beta List Site
Re: Quick Cookie Question, with CGI.pm.
|
Re: Quick Cookie Question, with CGI.pm.
Thank you for the reply. I tried that but I have to use the
$query->
print $query-> redirect (-uri => 'http"//localhost/test/',
-cookie => [$send_it]);
I don't print a header any where else in my script and I
get the error.
Status: 302 Moved
Set-Cookie: test=test%3Dok%26test2%3Dtest2ok; path=/;
expires=Thu, 16-May-2002 01:45:06 GMT
Date: Thu, 16 May 2002 01:40:06 GMT
location: http://localhost/test/
It's almost making it.
Allan
On Wed, 15 May 2002 15:09:47 -0700
"$Bill Luebkert" <dbe@[...].net> wrote:
> barons@[...].net wrote:
>
> >I know that the cookie has to be sent with the header.
> But
> > i'm having a problem sending a cookie and then
> > redirecting.
> >
> >print $query->header(-cookie => $sendcookie);
> >print $query->redirect(-uri=>'http://www.yahoo.com/');
> >
> >This will send the cookie but prints the 303 error
> message
> > from CGI.pm. How can I send the cookie and redirect at
> the
> > same time.
>
>
> print redirect (-uri => '/cgi-bin/fubar.pl', -cookie =>
> [$cookie]);
>
>
> --
> ,-/- __ _ _ $Bill Luebkert
> ICQ=14439852
> (_/ / ) // // DBE Collectibles
> Mailto:dbe@[...].com
> / ) /--< o // // http://dbecoll.tripod.com/ (Free
> site for Perl)
> -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic
> http://www.todbe.com/
>
Thread:
Carl Jolley
Carl Jolley
Carl Jolley
Carl Jolley
$Bill Luebkert
$Bill Luebkert
$Bill Luebkert
$Bill Luebkert
|