I create a cookie and read it and print it's value something like this.
my $sess_key = unix_md5_crypt(rand(11),$salt_key);
my $c = new CGI::Cookie(-name => 'sess',
-value => $sess_key,
-domain => $cook_domain,
-path => $cook_path,
-secure => 0
print "Set-Cookie: $c\n";
%cookies = fetch CGI::Cookie;
I would like to know the best method to include other values in the same cookie like
Once the additional values are in the cookie are the read and printed the same way or is 1 fetch all I need?
is it better to make a second cookie or is all data in one cookie acceptable?