BenRussell
Programmer
To set my cookie Im using the following
$Information = "1" . "\|" . "2" . "\|" . "3" . "\|" . "password";
use CGI;
$query = new CGI;
$cookie = $query->cookie(-name=>"Information",
-value=>"$Information",
-expires=>"+3h",
-path=>"/"
;
print $query->header(-cookie=>$cookie);
However, instead of printing to the cookie the "|" it prints a "%7C" which is probably because of CGI.pm's parsing incoming data capabilities.
Is there any way for me to just use the part of CGI.pm that works with cookies? Or would that not even work?
- Ben Russell
- President of Intracor Technologies (
$Information = "1" . "\|" . "2" . "\|" . "3" . "\|" . "password";
use CGI;
$query = new CGI;
$cookie = $query->cookie(-name=>"Information",
-value=>"$Information",
-expires=>"+3h",
-path=>"/"
print $query->header(-cookie=>$cookie);
However, instead of printing to the cookie the "|" it prints a "%7C" which is probably because of CGI.pm's parsing incoming data capabilities.
Is there any way for me to just use the part of CGI.pm that works with cookies? Or would that not even work?
- Ben Russell
- President of Intracor Technologies (