11 lines
359 B
Perl
11 lines
359 B
Perl
|
#!/usr/bin/perl -T
|
||
|
|
||
|
use strict;
|
||
|
use CGI qw/:standard/;
|
||
|
|
||
|
my $cookie1 = cookie(-name=>'testcookie',value=>'testcookievalue',expires=>'+7d');
|
||
|
my $cookie2 = cookie(-name=>'secondcookie',value=>'secondcookievalue',expires=>'+1d');
|
||
|
print header (-cookie=>[$cookie1,$cookie2]),start_html('CGI Cookie Test'),p("You've received a cookie\n"),
|
||
|
end_html;
|
||
|
|
||
|
exit;
|