/** * 返回应用端(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; }
public function destroy($sessionId) { parent::destroy($sessionId); return $this->delete($sessionId); }
private function test() { \HuiLib\Session\SessionBase::create(); print_r($_SESSION); }
/** * 初始化Session资源 */ protected function initSession() { $this->sessionInstance = \HuiLib\Session\SessionBase::create($this->configInstance()); Front::getInstance()->setSession($this->sessionInstance); }