Code

Added session name to avoid conflicts with other PHP software not using session_name.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Nov 2009 10:13:43 +0000 (10:13 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Nov 2009 10:13:43 +0000 (10:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14817 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_session.inc

index 0d543e689618ecda8c9549c41e1574e2696dbec5..9d298cd9eabdf7b9a2933f39fcafe2aec58a8418 100644 (file)
@@ -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 {