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 19: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.