/** * 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); }
/** * 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); }