Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Purging old sessions in CGI::SESSSION
- Bernard Cosell
November 18, 2004, 8:52 pm
rate this thread
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
Re: Purging old sessions in CGI::SESSSION
> Is there some standard way to get rid of old sessions in
> CGI::Sessions? I don't have a problem with them being "reused"
I thought you'd never ask :-):
CPAN is your friend...
Ron Savage, firstname.lastname@example.org on 20/11/2004
- » Request for naming assistance for new plotting module
- — Next thread in » PERL Modules Announcements