session_timeout question
Archived from the Xataface Users forum.
maddin — Thu Aug 23, 2007 7:25 am
hi steve
some of the users of my app told me that they have been forced to re-login after a while ..
in application php I found on line 524:
$cookie_timeout = (isset($conf[‘session_timeout’]) ? $conf[‘session_timeout’] : 24*60*60);
// 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
Is this the right place to do a quick hack? can i set the value to a higher value to solve this problem?
cheers
martin
shannah — Thu Aug 23, 2007 11:07 am
Hi Martin,
No need for a hack. You can specify the session timeout in the [_auth] section of your conf.ini file (in seconds).
e.g.
[_auth]
…
session_timeout = 345667
Hope this helps.
-Steve
maddin — Thu Aug 23, 2007 11:54 am
exellent…
thanks
all the best
martin