Re: Session timeout? Hi Guys,
I hope the following info helps:
I had the same problem and I fixed this way:
for joomla 1.0.11
1 - create a "tmp" folder in your account joomla instalation root and cmod it 0777
2 - edit includes/joomla.php and chage all 1800 or 1900 values in the code for 36000
3 - edit administrator/index.php, index2.php , index3.php and includes/joomla.php
and add the following in the beginnig after "MOS or die"....
// path for cookies
$cookie_path = "/";
// timeout value for the cookie
$cookie_timeout = 1200 * 30; // in seconds
// timeout value for the garbage collector
// we add 300 seconds, just in case the user's computer clock
// was synchronized meanwhile; 600 secs (10 minutes) should be
// enough - just to ensure there is session data until the
// cookie expires
$garbage_timeout = $cookie_timeout + 600; // in seconds
// set the PHP session id (PHPSESSID) cookie to a custom value
session_set_cookie_params($cookie_timeout, $cookie_path);
// set the garbage collector - who will clean the session files -
// to our custom timeout
ini_set('session.gc_maxlifetime', $garbage_timeout);
ini_set('session.gc_probability',1);
ini_set('session.gc_divisor',1000);
ini_set('session.save_path','/your_full_path_here/xxx/yyy/tmp');
// we need a distinct directory for the session files,
// otherwise another garbage collector with a lower gc_maxlifetime
// will clean our files aswell - but in an own directory, we only
// clean sessions with our "own" garbage collector (which has a
// custom timeout/maxlifetime set each time one of our scripts is
// executed)
strstr(strtoupper(substr($_SERVER["OS"], 0, 3)), "WIN") ?
$sep = "\\" : $sep = "/";
$sessdir = ini_get('session.save_path').$sep;
4 - Set in joomla administration admintime to 36000
I hope it works for you as well is working for me!
I can help with other versions and can also explain what problem these code lines solve
email me at: vogita "at" vogita "dot" com |