Perobl has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks!
I'm using CGI::Session and everything is working fine save for the fact that my session files aren't being deleted after expiring. My code follows:
my $session = new CGI::Session("driver:File", undef, {Directory => '/h +ome/wiw/public_html/tmp'}); my $sid = $session -> id(); $session -> name('sid'); $session -> expire('+60m'); $session -> param('session_uid', $rray[0]); $session -> param('session_fname', $rray[1]); $session -> param('session_lname', $rray[2]); $session -> param('session_email', $email_crypt);
My session files are being created in my tmp directory, and they even expire after 60 minutes, but the files never get deleted. I was under the impression that $session -> expire('+60'); automatically cleans things up and unlinks the session file in the tmp directory, but maybe I'm interpreting the documentation incorrectly?
Thank you!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI::Session Question
by Corion (Patriarch) on Sep 30, 2010 at 19:24 UTC | |
Re: CGI::Session Question
by Anonymous Monk on Sep 30, 2010 at 21:04 UTC | |
by Perobl (Beadle) on Oct 01, 2010 at 16:55 UTC |
Back to
Seekers of Perl Wisdom