Пример #1
0
 /**
  * Class constructor
  *
  * @param string $base
  */
 function __construct($base = null)
 {
     if (Configure::read('Session.start') === true) {
         parent::__construct($base, false);
     } else {
         $this->__active = false;
     }
 }
Пример #2
0
 /**
  * Turn sessions on if AUTO_SESSION is set to false in core.php
  *
  * @param string $base
  */
 function activate($base = null)
 {
     if ($this->__active === true) {
         return;
     }
     parent::__construct($base);
     $this->__active = true;
 }
Пример #3
0
 /**
  * Class constructor
  *
  * @param string $base
  */
 function __construct($base = null)
 {
     if (!defined('AUTO_SESSION') || AUTO_SESSION === true) {
         parent::__construct($base, false);
     } else {
         $this->__active = false;
     }
 }