Because my quota restricts me to 15,000 files in my webspace, this
buildup of files is a problem. Any idea why so many session files are
being created, and what I might be able to do to cap how many session
files are stored?
As a remedy, I've been running this from the command line a few times a day:
cookbook/userauth2/session_data>$ ls -t | tail -1000 | while read
file; do rm $file; done
Thanks in advance,
John
_______________________________________________
pmwiki-users mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Hi, John,
I was using userauth2 as well, and found the same sort of issue. I
don't have a file quota, but it was bothering me a lot. I found that
most of the problem was due to web crawler bots, as each hit seems to
start a new session. Restricting web crawlers can obviously be
problematic, but make sure you're properly using the robots.txt and
rel="nofollow" attributes in links where you can.
I've subsequently gone back to using SiteAdmin.AuthUser. Less control
than I'd like, but it has the advantage of being much more widely used
and supported in pmwiki-land than userauth2.