session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed:

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 28, 2012   (RSS)

Re: [rjbathgate] session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed:

By Jason - June 28, 2012

Hi,


If you are not using a custom save path for your session files, you can use this:

ini_set('session.gc_probability', 0);

near the top of initi.php. If you are using a custom save path, comment out the lines around line 390:



// ini_set('session.gc_probability', 1 ); // after gc_maxlifetime is met old session are cleaned up randomly every (gc_probability / gc_divisor) requests
// ini_set('session.gc_divisor', 250 ); // after gc_maxlifetime is met old session are cleaned up randomly every (gc_probability / gc_divisor) requests


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed:

By rjbathgate - June 28, 2012

Hi,

Thanks heaps, will give it a whirl.

Cheers