1
0
Fork 0
apache2/debian/perl-framework/Apache-Test/t/cgi-bin/cookies.pl.PL
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

16 lines
313 B
Perl

#!perl -wT
use strict;
use CGI;
use CGI::Cookie;
my %cookies = CGI::Cookie->fetch;
my $name = 'ApacheTest';
my $c = ! exists $cookies{$name}
? CGI::Cookie->new(-name=>$name, -value=>time)
: '';
print "Set-Cookie: $c\n" if $c;
print "Content-Type: text/plain\n\n";
print ($c ? 'new' : 'exists'), "\n";