projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
89b7f2b
)
more disabling of session with http auth
author
Alan Knowles
<alan@roojs.com>
Tue, 3 Nov 2020 06:49:58 +0000
(14:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 3 Nov 2020 06:49:58 +0000
(14:49 +0800)
DataObjects/Core_company.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_company.php
b/DataObjects/Core_company.php
index
aca5be8
..
ac63449
100644
(file)
--- 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'];
{
$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']);
if (!empty($_SESSION[__CLASS__][$sesPrefix .'-auth'])) {
// in session...
$a = unserialize($_SESSION[__CLASS__][$sesPrefix .'-auth']);