Apache::Session::DB_File cleanup issue

2012-04-03 Thread James B. Muir
Hi All, I'm using Apache::Session::DB_File to manage some sessions via a mod_perl2 handler and Apache2. I'm running into difficulties trying to read stored data in the sessions db while writing a cleanup cron job to remove old sessions. The following code snippet illustrates the problem: use

Re: Apache::Session::DB_File cleanup issue

2012-04-03 Thread Perrin Harkins
Hi James, There are a couple of issues here. One is that Apache::Session::DB_File doesn't use MLDBM, so you can't use that to read it. It uses DB_File. The other is that Data::Dumper may not do what you hope when you hand it a tied variable, i.e. not a real hash. I'm not certain about that one