You can achieve that with expires.
my $ck1 = new CGI::Cookie( -name => "time", -value => "some value", -expires => '+15m', );
update: Whenever you try to read the cookie and it is not present, then redirect to the login page.
In reply to Re: Expiring Cookies
by olus
in thread Expiring Cookies
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |