I introduced a
use vars qw( $SESSION_CLEANUP_COUNTER); also having if not defined value =0, and $SESSION_CLEANUP_COUNTER When it reaches the threshold do the cleanup, but it always go to the undefined clause and return zero, had use vars qw been deprecated? Tracy12 wrote: > > I have a general understanding about cleanup handler > > But what is meant by the global timestamp and cleaning up in every 15 > minutes, > > Programatically How can we achieve it > Are u refereing to a global variable > > > > 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#a8444348 Sent from the mod_perl - General mailing list archive at Nabble.com.
