From: Alan Knowles Date: Tue, 3 Nov 2020 06:49:58 +0000 (+0800) Subject: more disabling of session with http auth X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6f33cd74e44504b2543eccb2b8f21cff7e8063b3 more disabling of session with http auth --- diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index aca5be84..ac634497 100644 --- a/DataObjects/Core_company.php +++ b/DataObjects/Core_company.php @@ -134,7 +134,9 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject { $db = $this->getDatabaseConnection(); $sesPrefix = $db->dsn['database']; - @session_start(); + if (empty($_SERVER['PHP_AUTH_USER'])) { + @session_start(); + } if (!empty($_SESSION[__CLASS__][$sesPrefix .'-auth'])) { // in session... $a = unserialize($_SESSION[__CLASS__][$sesPrefix .'-auth']);