Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Cookie With cookie-lib.pl

Status
Not open for further replies.

bretttt

Programmer
Jul 23, 2002
74
US
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;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top