Z
zhanye815
I want ot set cookie,but it can't do.
use CGI::Cookie;
my $c = new CGI::Cookie
-name => 'login',
-value => $keyid,
-expires => '+15m');
print "Set-Cookie: $c\n";
print "Content-Type: text/html\n\n";
it can print the set_cookie string on the screen,but when i use the
"print $ENV{'HTTP_COOKIE'}" to get the cookie,but it show nothing.
I use php to set cookie then use the perl to get cookie ,it work
well.but how to use perl to set cookie ?
my browser is ie6 not the netscape.
thank you .
use CGI::Cookie;
my $c = new CGI::Cookie
-name => 'login',
-value => $keyid,
-expires => '+15m');
print "Set-Cookie: $c\n";
print "Content-Type: text/html\n\n";
it can print the set_cookie string on the screen,but when i use the
"print $ENV{'HTTP_COOKIE'}" to get the cookie,but it show nothing.
I use php to set cookie then use the perl to get cookie ,it work
well.but how to use perl to set cookie ?
my browser is ie6 not the netscape.
thank you .