Viewing file: settings.inc.php (1.33 KB) -rwxrwxr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
// DEFINE SETTINGS HERE $root_web = "http://test.axkickboxing.com/"; $root_web_path = "/www/test.axkickboxing.com/public_html/"; $axess_root_web = "http://axess.axkickboxing.com/";
// err_type 1 = email. 3 = custom log $err_type = 1; // if err_type = 1, then $err_target = 'brian@axkickboxing.com' // if err_type = 3, then $err_target = '/var/log/nginx/theaxforum.error.log' //$err_target = '/var/log/nginx/theaxforum.error.log'; $err_target = 'brian@axkickboxing.com';
$debug_view = FALSE;
ini_set('log_errors','1'); ini_set('display_errors','1');
// Get the current Session Timeout Value // from http://prajapatinilesh.wordpress.com/2009/01/14/manually-set-php-session-timeout-php-session/ $currentTimeoutInSecs = ini_get('session.gc_maxlifetime'); // Change the session timeout value to 30 minutes ini_set('session.gc_maxlifetime', 30*60); // php.ini settings required for session timeout. ini_set('session.gc_probability',1); ini_set('session.gc_divisor',1);
//This fixes the separate session ID per subdomain issue //ini_set('session.cookie_domain', substr($_SERVER['SERVER_NAME'],strpos($_SERVER['SERVER_NAME'],"."),100)); //session_set_cookie_params(7200, '/', '.theaxforum.com'); session_set_cookie_params ( 0 ,"/", preg_replace( "/^".( isset( $_SERVER["SUBDOMAIN"] ) ? $_SERVER["SUBDOMAIN"]:"www" )."\./","", $_SERVER["HTTP_HOST"] ) );
?>
|