i have this setting the cookie, and it works.
how can i read the cookie in from the browser?
use cookie-lib.pl;
@pairs = split(/&/, $ENV{'QUERY_STRING'});
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$form{$name} = $value}
$cookie{iboostuser}=$uname;
$cookie{iboostpassword}=$shit[1];
&set_cookie(time+86400,' print "Location: index.cgi?uname=$uname\n\n" ;
die;
}
how can i read the cookie in from the browser?
use cookie-lib.pl;
@pairs = split(/&/, $ENV{'QUERY_STRING'});
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$form{$name} = $value}
$cookie{iboostuser}=$uname;
$cookie{iboostpassword}=$shit[1];
&set_cookie(time+86400,' print "Location: index.cgi?uname=$uname\n\n" ;
die;
}