/** * Destroy Session - remove data from resource for given session id * * @param string $id * @return boolean */ public function destroy($id) { // invoke hook to session expired $sessFile = "{$this->_sessionSavePath}/sess_{$id}"; if (file_exists($sessFile)) { Logout::hookExpiredSession($this->read($id)); return @unlink($sessFile); } return false; }