Purging old sessions in CGI::SESSSION
From: Bernard Cosell (bernie_at_rev.net)
Date: 11/18/04
- Next message: boyd: "Re: Perl Tk::Scrolled bug"
- Previous message: Ron Savage: "Announce: Getopt::Simple V 1.48"
- Next in thread: Ron Savage: "Re: Purging old sessions in CGI::SESSSION"
- Reply: Ron Savage: "Re: Purging old sessions in CGI::SESSSION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Nov 2004 14:52:51 -0500
Is there some standard way to get rid of old sessions in
CGI::Sessions? I don't have a problem with them being "reused" [and
indeed, they have an expiration time of 1 hour and that seems to work
fine]... but only that the MySQL table I'm using is accuulating a lot
of crap that I'd like to clean out.
Is there some "standard" way, using new CGI::Session
("driver:MySQL",.....) ; to purge out the old/expired sessions? This
on a unix system, so I guess I could set up a cron job and use
expire() and delete() to clean things up [that is, hoping that
'delete' will actually remove the sessions's row from the MySQL
table..:o)], but I was surprised, I guess, not to see this aspect of
CGI::Session addressed...
Thanks!
/Bernie\
- Next message: boyd: "Re: Perl Tk::Scrolled bug"
- Previous message: Ron Savage: "Announce: Getopt::Simple V 1.48"
- Next in thread: Ron Savage: "Re: Purging old sessions in CGI::SESSSION"
- Reply: Ron Savage: "Re: Purging old sessions in CGI::SESSSION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|