diff --git a/common.inc.php b/common.inc.php index fb48b94..fba4ae2 100644 --- a/common.inc.php +++ b/common.inc.php @@ -180,8 +180,13 @@ while($r=mysql_fetch_object($q)) require_once("committee.inc.php"); -session_name("SFIABSESSID".ereg_replace("[^A-Za-z]","_",$config['SFIABDIRECTORY'])); -session_set_cookie_params(0,$config['SFIABDIRECTORY']); +if($config['SFIABDIRECTORY'] == '') { + session_name("SFIABSESSID"); + session_set_cookie_params(0,'/'); +} else { + session_name("SFIABSESSID".ereg_replace("[^A-Za-z]","_",$config['SFIABDIRECTORY'])); + session_set_cookie_params(0,$config['SFIABDIRECTORY']); +} session_start(); //detect the browser first, so we know what icons to use - we store this in the config array as well