From 3e446fddf4335662394d3d5b6dfa11b28e8aa2af Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 28 Aug 2009 17:01:15 +1000 Subject: [PATCH] SF Bug #2845904 - session.autostart breaks --- lib/session_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session_functions.php b/lib/session_functions.php index 9b8393e..30ae3c9 100644 --- a/lib/session_functions.php +++ b/lib/session_functions.php @@ -86,7 +86,7 @@ function app_session_start() { * prior to loading the SchemaItem (and descedants) class. Destroy the auto-started * session to prevent this problem. */ - if (ini_get('session.auto_start')) + if (ini_get('session.auto_start') && ! array_key_exists(app_session_id_init,$_SESSION)) @session_destroy(); # Do we already have a session?