http://www.perlmonks.org?node_id=907648


in reply to Some questions about CGI::Session

I have had the same issue with CGI:Session under linux, the file build up over time can be extremely bad. There are no real methods to clean up temp files if the user does not log out, so you may need a system based solution. Check the find command something similar to "find /SessionPath/ -mtime +31 -exec rm {} \;" for clearing files not accessed in a month, if you do not all ready have something in place. Using find in this manner may handle the cases of directory structure and entered into crontab or another scheduler can net you more dev time.

The alternative DB stored sessions will work and may offer additional tracking at the expense of additional development time. making changes to the text files is simplier then adding/modifying table structures.