destroy() abstract public method

This method should only be called internally by PHP via session_set_save_handler().
abstract public destroy ( string $id ) : boolean
$id string The session identifier.
return boolean True on success, false otherwise.
示例#1
0
 /**
  * Destroy the data for a particular session identifier in the backend.
  * This method should only be called internally by PHP via
  * session_set_save_handler().
  *
  * @param string $id  The session identifier.
  *
  * @return boolean  True on success, false otherwise.
  */
 public function destroy($id)
 {
     if ($this->_storage->destroy($id)) {
         $this->_logger->log('Session data destroyed (' . $id . ')', 'DEBUG');
         return true;
     }
     $this->_logger->log('Failed to destroy session data (' . $id . ')', 'DEBUG');
     return false;
 }