Hi, I could get my Perl (mod_perl) Authentication handler with the CGI:Session package, It is working fine.
We decided to keep the session data on LAN (file). As there will be new file created for each Session, We just wanted to know how to cleanup this folder, basically to clean all the expired sessions. Which part of the perl auth handler should do this cleanup How can we do the above , Sample code segment in our PerlAuth handler looks as follows my $session = new CGI::Session() or die CGI::Session->errstr; $session = new CGI::Session(undef, undef, {Directory=>'../tmp/sessions'}); if ( $session->is_expired ) { $session = $session->new(); } if ( $session->is_empty ) { $session = $session->new(); } -- View this message in context: http://www.nabble.com/mod_perl-best-practices-cleanup-tf3037692.html#a8442512 Sent from the mod_perl - General mailing list archive at Nabble.com.