Example #1
0
 /**
  * destroy
  *
  * @param string $sid Session Id
  *
  * @return array
  */
 private function destroy($sid)
 {
     $this->dbc->query("DELETE FROM `" . SESSIONS . "`\n            WHERE `session_id` = '" . $this->dbc->escapeValue($sid) . "'");
     $_SESSION = array();
     return $this->dbc->affectedRows();
 }