/**
  * Method called on close of a database session.
  *
  * @return boolean Success
  * @access private
  */
 private function __close()
 {
     CakeMongoSession::__gc();
     return true;
 }
Esempio n. 2
0
 /**
  * Starts Session if SessionComponent is used in Controller::beforeFilter(),
  * or is called from
  *
  * @return boolean
  * @access private
  */
 private function __start()
 {
     if ($this->started() === false) {
         if (!$this->id() && parent::start()) {
             parent::_checkValid();
         } else {
             parent::start();
         }
     }
     return $this->started();
 }