session_timeout question

A place for users and developers of the Xataface to discuss and receive support.

Postby 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
maddin
 
Posts: 58
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby maddin » Thu Aug 23, 2007 11:54 am

exellent...
thanks
all the best
martin
maddin
 
Posts: 58
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved