예제 #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
파일: session.php 프로젝트: venka10/RUS
 /**
  * Class constructor
  *
  * @param string $base
  */
 function __construct($base = null)
 {
     if (!defined('AUTO_SESSION') || AUTO_SESSION === true) {
         parent::__construct($base, false);
     } else {
         $this->__active = false;
     }
 }