note 103665 deleted from function.session-cache-expire by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 12:18:21 +0000 |
| Subject: | note 103665 deleted from function.session-cache-expire by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197164@lists.php.net to get a copy of this message | ||
Note Submitter: karel at narfum dot org
----
What most people also don't know, is that most Linux distributions (Debian and Ubuntu for me
atleast) have a cronbjob that cleans up your session dir using the value set in the global
/etc/php5/php.ini (which defaults to 24mins). So even if you set a value larger in your scripts, the
cronbjob will still cleanup sessions using the global value.
If you run into that situation, you can set the global value higher in /etc/php5/php.ini, disable
the cronjob or even better, do your own session cleanup in a non-systemwide directory or a database.