note 51351 deleted from ref.session by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 18:36:28 +0000 |
| Subject: | note 51351 deleted from ref.session by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142239@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at paginadespud dot com
----
hi all,
i've been troubles with sessions at my production server for weeks and today i've noticed
the problem.
If you use /tmp as php sessions file dir, on a procuction server, system garbage will delete
randomly files when a certain number os files are stored at tmp, so some sessions are deleted within
1 seconds, like my case.
Solution? use another dir for php sessions file, and be careful of using a shell script for your own
garbage collection, called from cron, with this line:
cd /path/to/sessions; find -cmin +24 | xargs rm
Spud.