Comments on PHP session data is not deleted when using custom session management on debian (and ubuntu)

PHP session data is not deleted when using custom session management on debian (and ubuntu) On debian systems (as far as I know this applies to ubuntu, too) the garbage collector for PHP sessions is disabled by default. The corresponding setting in php.ini is session.gc_probability = 0 which enables the garbage collector when set to something greater than zero. The default value in PHP is 1, so the garbage collector is called with a probability of 1/100 at each PHP script call. On debian systems this setting is disabled because of the fact that the default path for session storage is not writable for the web server process (and it shouldn't be either). Deleting of outdates session files is done by a system cron job here.

0 Comment(s)

Add comment

Please register in our forum first to comment.