I'm not that much of a newbie, but I can not get my cookies working. I've tried so many different cookie scripts, and most of them aren't working for me. All I want is a cookie for $pass, and a cookie for $cname. Cname is the charecter name, and pass is the password, which is the text file that has all of their variables in there.
What I have right now, for the login is:
use CGI;
$q = new CGI;
my $cookie =
$q->cookie(
-name => "cookie_name",
-value => "cookie_contents",
);
print $q->header(-cookie => $cookie);
What I have for the next page for retrieving is:
string: my $content =
$q->cookie(-name => "cookie_name"
array: my @array =
$q->cookie(-name => "cookie_name"
hash: my %hash =
$q->cookie(-name => "cookie_name"
There is another problem-
When I open the next page, nothing shows. I took a couple of things off, and it still doesn't show. I'm sure if I can get the cookies working, than I can get the rest myself.
What I have right now, for the login is:
use CGI;
$q = new CGI;
my $cookie =
$q->cookie(
-name => "cookie_name",
-value => "cookie_contents",
);
print $q->header(-cookie => $cookie);
What I have for the next page for retrieving is:
string: my $content =
$q->cookie(-name => "cookie_name"
array: my @array =
$q->cookie(-name => "cookie_name"
hash: my %hash =
$q->cookie(-name => "cookie_name"
There is another problem-
When I open the next page, nothing shows. I took a couple of things off, and it still doesn't show. I'm sure if I can get the cookies working, than I can get the rest myself.