in reply to Cookie Problem!
So what is your question?
If you want an expiration date, then set one:
$cookie = $query->cookie(-name=>'my-cookie', -value=>'1', -expires=>'+8h');
In Section
Seekers of Perl Wisdom