From: cajus Date: Mon, 16 Nov 2009 10:13:43 +0000 (+0000) Subject: Added session name to avoid conflicts with other PHP software not using session_name. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e98403ce5fa8cc3044d72dc24f85325cbd193c3;p=gosa.git Added session name to avoid conflicts with other PHP software not using session_name. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14817 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_session.inc b/gosa-core/include/class_session.inc index 0d543e689..9d298cd9e 100644 --- a/gosa-core/include/class_session.inc +++ b/gosa-core/include/class_session.inc @@ -186,6 +186,7 @@ class session { !! The garbage collector is a cron job on debian systems, the cronjob will fetch the timeout from the php.ini, so if you use debian, you must hardcode session.gc_maxlifetime in your php.ini */ ini_set("session.gc_maxlifetime",24*60*60); + session_name("GOsa"); session_start(); /* Check for changed browsers and bail out */ @@ -193,6 +194,7 @@ class session { { if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) { session_destroy(); + session_name("GOsa"); session_start(); } } else {