コード例 #1
0
ファイル: HttpSession.php プロジェクト: szeber/yapep_base
 /**
  * Destroys the session.
  *
  * @return void
  *
  * @see YapepBase\Session.SessionAbstract::destroy()
  */
 public function destroy()
 {
     parent::destroy();
     $this->response->setCookie($this->cookieName, '', 1, $this->cookiePath, $this->cookieDomain);
 }
コード例 #2
0
ファイル: SimpleSession.php プロジェクト: szeber/yapep_base
 /**
  * Constructor
  *
  * @param string                        $configName     Name of the session config.
  * @param \YapepBase\Storage\IStorage   $storage        The storage object.
  * @param string                        $sessionId      ID of the session.
  * @param bool                          $autoRegister   If TRUE, it will automatically register as an event handler.
  */
 public function __construct($configName, IStorage $storage, $sessionId, $autoRegister = true)
 {
     $this->sessionId = $sessionId;
     parent::__construct($configName, $storage, $autoRegister);
 }