Dadabik login session timeout

komora

New member
Hello, I'm using Dadabik 4.2 on a Windows 7 machine.

After some time (30 minutes or maybe an hour) if nothing has been done to the Dadabik (no browsing, search or record insert) it disconnects me automatically (I have to re-login to be able to work again). It is a bit annoying.

I wasn't able to find any configuration parameters which affect this in the configuration files.

Where can I configure the login session timeout setting?

Thanks..

 

billthecat

Well-known member
By default, DaDaBIK doesn't handle cookie lifetime; this is set in php.ini with session.cookie_lifetime.

You can override this (untested) like this:
/include/common_start.php
line# 111


session_start();
session_set_cookie_params(3600); //60 minutes
if ((rand()%10) == 0) adodb_session_regenerate_id();


The line with adodb_session_regenerate_id(); is not required, but may be useful to improve security by reducing the risk of session-hijacking.

 
Top