Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

Re: CGI redirect

by mortis (Pilgrim)
on Feb 03, 2000 at 21:22 UTC ( [id://2812]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to CGI redirect

You should be able to, are you trying something like this?:
my $cookie = $query->cookie(-name=>'foo',-value=>'bar',-domain=>'mydom +ain.com'); print $query->header(-type=>'text/html',-cookie=>$cookie);
To generate cookies, you have to use the CGI::cookie method.

Replies are listed 'Best First'.
RE: Re: CGI redirect
by yschang (Initiate) on Feb 04, 2000 at 14:16 UTC
    Maybe I didn't state my question clearly. I mean I can't do this when I use $query->header function. However I can't do this when I use $query->redirect function. But from docuementation of CGI model, It seems to me that I can send cookie when I use redirect function. But in reality I can't. As matter of fact I have done the way you mentioned. What I try to do is to use $query->redirect function to send the cookie to the client.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://2812]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.