[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] SessionExpire and cleaning up sessions


I use 'SessionExpire 2 days' in catalog.cfg, and the following is run
nightly to clean up sessions:

# find /pathto/catalog/tmp -type f -mmin +480 | xargs --no-run-if-empty rm
# find /pathto/catalog/tmp -type d -empty -depth -mindepth 1 | xargs
--no-run-if-empty rmdir
# find /pathto/catalog/session -type f -mmin +480 | xargs --no-run-if-empty rm
# find /pathto/catalog/session -type d -empty -depth -mindepth 1 |
xargs --no-run-if-empty rmdir

Do those entries clean up all sessions, active and inactive?  If so,
is there a way to clean up sessions only after 2 days of inactivity?

Should I put my sessions in a DBM or mysql database instead of in files?

- Grant
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.