Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: saving datas on client-side cookie file.

by Michalis (Pilgrim)
on Jun 14, 2000 at 15:25 UTC ( [id://18071] : note . print w/replies, xml ) Need Help??


in reply to saving datas on client-side cookie file.

Sure, with the use of CGI.pm, get some code as an example:
my $input_cookie=cookie(-name=>'cookie_name', -value=>param('input_name'), -path=>'/', -domain=>'your.domain.com', ); $q=new CGI; print $q->header(-cookie=>$input_cookie);
Where input_name (used in param) is the name of the form element which contains the data you want to send to the client. The next page, will have the cookie with the name cookie_name available.