function destroy($session_id)
{
// deletes the current session id from the database
$result = $this->_mysql_query('
DELETE FROM
' . $this->table_name . '
WHERE
session_id = "' . $this->_mysql_real_escape_string($session_id) . '"
') or die($this->_mysql_error());
// if anything happened
// return true
if ($this->_mysql_affected_rows() !== -1) {
return true;
}
// if something went wrong, return false
return false;
}