Author Topic: Session timeout Tip  (Read 8717 times)

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Session timeout Tip
« on: July 23, 2008, 04:14:28 pm »
OpenGoo does not currently set Session timeout, it uses the default from the server (PHP's default is 24 minutes).

There are two ways to change the default behaviour to a two hours timeout :
1.- If you can access a working .htaccess in your root OpenGoo directory (common in Linux), you should add the following lines:

Code: [Select]
php_value session.gc_maxlifetime 7200
php_value session.gc_divisor 1
php_value session.gc_probability 1

2.-The second (untested) option is to add the following code into OpenGoo (in OPENGOO_ROOT/environment/environment.php after the comment  "//Configure PHP", line 13 aprox)
Code: [Select]
ini_set( session.gc_maxlifetime, 7200);
ini_set( session.gc_divisor, 1);
ini_set( session.gc_probability, 1);

Hope it is usefull,
Marcos

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Session timeout Tip
« Reply #1 on: September 18, 2008, 11:33:40 pm »
Thanks for the tip.  As I get more people onto this app, I can anticipate that complaint will come.

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Session timeout Tip
« Reply #2 on: September 19, 2008, 10:47:03 am »
Thanks Marcos.

Maybe we should create the "Tips" section you once suggested?  :)
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.