SF Bug #2845904 - session.autostart breaks

This commit is contained in:
Deon George 2009-08-28 17:01:15 +10:00
parent bdb423d0d3
commit 3e446fddf4

View File

@ -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?