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_
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_COUNTER); and increment within the code doent
seem
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
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
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
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 co
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