Make session timeouts configurable

This commit is contained in:
Zone 2002-09-24 05:21:38 +00:00
parent 453c62f1b2
commit 0a0261a9e1
4 changed files with 27 additions and 2 deletions

View File

@ -150,6 +150,8 @@
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_checkip','True')");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_timeout',7200)");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_app_timeout',86400)");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_interserv(server_name,server_host,server_url,trust_level,trust_rel,server_mode) VALUES ('phpGW cvsdemo',NULL,'http://www.phpgroupware.org/cvsdemo/xmlrpc.php',99,0,'xmlrpc')");

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'phpgwapi';
$setup_info['phpgwapi']['version'] = '0.9.15.004';
$setup_info['phpgwapi']['version'] = '0.9.15.006';
$setup_info['phpgwapi']['versions']['current_header'] = '1.22';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;

View File

@ -104,4 +104,14 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
$test[] = '0.9.15.005';
function phpgwapi_upgrade0_9_15_005()
{
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_timeout',7200)");
$GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_app_timeout',86400)");
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.006';
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
?>

View File

@ -78,6 +78,19 @@
</td>
</tr>
<tr bgcolor="{row_on}">
<td>
{lang_Timeout_for_sessions_(in_seconds)}.
<br>{lang_(not_for_php4_sessions)}
</td>
<td><input size="8" name="newsettings[sessions_timeout]" value="{value_sessions_timeout}"></td>
</tr>
<tr bgcolor="{row_on}">
<td>{lang_Timeout_for_application_session_data_(in_seconds)}.</td>
<td><input size="8" name="newsettings[sessions_app_timeout]" value="{value_sessions_app_timeout}"></td>
</tr>
<!--
<tr bgcolor="{row_off}">
<td>{lang_How_would_you_like_to_sort_applications_in_the_navbar?}:</td>