
pu_nk
journeyman
Nov 17, 2001, 8:01 PM
Post #1 of 2
(369 views)
|
I am looking for a way to use 2 headers uing CGI.pm I want to set a cookie and at the same time redirect the webpage somewhere else.. any way to do this ? Is there another way i can write to set the cookie without using print header(-cookie=> $cookie); ------------------------------------------------------------------ HERE IS WHAT I NEED TO DO #!/usr/bin/perl use CGI qw(:standard); $viz = "1"; $cookie = cookie(-name=>'visits', -value=>$viz, -expires=>'+1d', -path=>'/'); print header(-cookie=> $cookie); print redirect("http://www.cool.com"); --------------------------------------------------------------- drew
|