Exemple #1
0
 /**
  * 返回应用端(App)交互接口Model
  * 
  * @return \HuiLib\Session\ModelInterface
  */
 public function getModel()
 {
     if ($this->sessionModel === NULL) {
         $config = $this->sessionBase->getConfig();
         if (!isset($config['model']) || !class_exists($config['model'], FALSE)) {
             $this->sessionModel = FALSE;
             return $this->sessionModel;
         }
         $modelClass = $config['model'];
         $this->sessionModel = $modelClass::getInstance();
     }
     return $this->sessionModel;
 }
Exemple #2
0
 public function destroy($sessionId)
 {
     parent::destroy($sessionId);
     return $this->delete($sessionId);
 }
Exemple #3
0
 private function test()
 {
     \HuiLib\Session\SessionBase::create();
     print_r($_SESSION);
 }
Exemple #4
0
 /**
  * 初始化Session资源
  */
 protected function initSession()
 {
     $this->sessionInstance = \HuiLib\Session\SessionBase::create($this->configInstance());
     Front::getInstance()->setSession($this->sessionInstance);
 }