Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: CGI redirect

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


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://2812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2025-06-15 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.