The first one should be session.cookie_lifetime (setting gc_maxlifetime to zero would cause all session data files to be deleted every time GC runs.)
Setting gc_maxlifetime to a longer value should work. As long as the session.save_path points to a folder that only your instance of the VPS uses, your gc_maxlifetime setting should apply. How are you setting these and have you verified their actual runtime values using a phpinfo(); statement?
Setting gc_probability = 0 should stop GC (I don't recall if the code use less-than < or less-than and equal-to <= in the comparison.)
It could be that sessions are not working at all.
Edit: I looked at the C source code again and the GC logic use less-than <, so, setting gc_probability = 0 does stop GC.
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
Last edited by CFMaBiSmAd; 05-14-2008 at 03:34 PM..