New tax system implementation.
[fa-stable.git] / includes / session.inc
index 3f8c525d32b80a2957642db34dbc036179a2badb..92bf5482a178a12232bb2774c7d3edae792db804 100644 (file)
@@ -394,6 +394,9 @@ foreach ($installed_extensions as $ext)
        if (file_exists($path_to_root.'/'.$ext['path'].'/hooks.php'))
                include_once($path_to_root.'/'.$ext['path'].'/hooks.php');
 }
+
+ini_set('session.gc_maxlifetime', 36000); // moved from below.
+
 $Session_manager = new SessionManager();
 $Session_manager->sessionStart('FA'.md5(dirname(__FILE__)));
 
@@ -429,7 +432,7 @@ if ($SysPrefs->error_logfile != '') {
 */
 // ini_set('session.save_path', VARLIB_PATH.'/');
 
-ini_set('session.gc_maxlifetime', 36000); // 10hrs
+// ini_set('session.gc_maxlifetime', 36000); // 10hrs - moved to before session_manager
 
 hook_session_start(@$_POST["company_login_name"]);
 
@@ -457,6 +460,7 @@ include_once($path_to_root . "/includes/access_levels.inc");
 include_once($path_to_root . "/version.php");
 include_once($path_to_root . "/includes/main.inc");
 include_once($path_to_root . "/includes/app_entries.inc");
+include_once($path_to_root . "/taxes/tax_rules.inc");
 
 // Ajax communication object
 $Ajax = new Ajax();
@@ -469,6 +473,7 @@ $Editors = array();
 $Pagehelp = array();
 
 $Refs = new references();
+$TS = new tax_system();
 
 // intercept all output to destroy it in case of ajax call
 register_shutdown_function('end_flush');