k0rn has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with a cookie routine
if ($register eq 1) {
my $cookie = cookie(
-NAME => 'zebulun.ath.cx',
-VALUE => '$key',
-EXPIRES => '+12h',
);
print header(-cookie => $cookie);
}
The problem is the -VALUE => '$key'; instead of useing the data in the variable $key it uses it as text. Is their a way to fix that??
if ($register eq 1) {
my $cookie = cookie(
-NAME => 'zebulun.ath.cx',
-VALUE => '$key',
-EXPIRES => '+12h',
);
print header(-cookie => $cookie);
}
The problem is the -VALUE => '$key'; instead of useing the data in the variable $key it uses it as text. Is their a way to fix that??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cookie Help
by hipowls (Curate) on Apr 24, 2008 at 23:56 UTC | |
by k0rn (Acolyte) on Apr 25, 2008 at 01:32 UTC | |
by olus (Curate) on Apr 25, 2008 at 03:17 UTC | |
Re: Cookie Help
by jethro (Monsignor) on Apr 25, 2008 at 03:11 UTC |
Back to
Seekers of Perl Wisdom