note 51351 added to ref.session

From: Date: Mon, 28 Mar 2005 17:10:55 +0000
Subject: note 51351 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-87094@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51351 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51351&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51351&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51351&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51351&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51351&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51351&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87094) next »