Looks like cron job will do, but is there any docs to write such a script.

Meantime I found a sample as follows, as I am not having any DSN  but only a
folder /tmp to store session data will this work or how this can be modified



#!/usr/bin/perl

use constant DSN        => 'driver:file';
use constant DSN_ARGS   => {};

use CGI::Session;

CGI::Session->find( DSN, sub {}, DSN_ARGS ) or die CGI::Session->errstr;



Jonathan Vanasco-3 wrote:
> 
>>> Which part of the perl auth handler should do this cleanup
> 
> Just to add though -- if you really want to do a cleanup within MP,  
> use the cleanup handler which works after the client connection is  
> terminated.  also try setting a global timestamp so you only do the  
> cleanup code once every 15 minutes or so, instead of on every request.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mod_perl-best-practices-cleanup-tf3037692.html#a8442858
Sent from the mod_perl - General mailing list archive at Nabble.com.

Reply via email to