disable session stuff if we are doing http auth
[pear] / HTML / FlexyFramework / Page.php
index 9b2481f..5cb4937 100644 (file)
@@ -403,6 +403,12 @@ class HTML_FlexyFramework_Page  {
     {
         static $ses_status = false;
         static $ini = false;
+        
+        if (!empty($_SERVER['PHP_AUTH_USER'])) {
+            // do not do sessions if we are using http auth.
+            return;
+        }
+        
         // session status is only php5.4 and up..
         if (!defined('PHP_SESSION_ACTIVE')) {
             define('PHP_SESSION_ACTIVE' , 1);