Tracy12 wrote:
I tried to declare
use vars qw( $SESSION_CLEANUP_COUNTER); and increment within the code doent
seem to work,
Shoud i increment this in a specific hanlder.
You really need to heed the advice of the list and consider using the a
cron job to expire old sessions. It's really not
On Jan 21, 2007, at 5:49 PM, Tracy12 wrote:
If have a Authentication handler written in perl,
How can count the no of times it has been accessed by clients,
(Some think
like no of hits . Counter).
Is there a specific handler to do this ?
I tried to declare
use vars qw( $SESSION_CLEANUP_
orks 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.
p 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.
instead of on every request.
>
>
>
--
View this message in context:
http://www.nabble.com/mod_perl-best-practices-cleanup-tf3037692.html#a8444035
Sent from the mod_perl - General mailing list archive at Nabble.com.
Tracy12 wrote:
Looks like cron job will do, but is there any docs to write such a script.
See CGI::Session::ExpireSessions
(http://search.cpan.org/perldoc?CGI%3A%3ASession%3A%3AExpireSessions) for a
complete solution).
HTH,
Rhesa
t 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
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 m
On Jan 18, 2007, at 7:53 PM, Tracy12 wrote:
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
mp/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 - Gen
10 matches
Mail list logo