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 this cleanup

none.

use a cron job to clear out files that haven't been modified within X time. run it ever 15-30 minutes.

you can also store sessions in a db, and just run a cron job that deletes old sessions every so often.

while its possible to run a cleanup in your code, its way easier to just run a cron job.


// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Reply via email to