public destroySession ( string $id ) : boolean | ||
$id | string | session ID |
return | boolean | whether session is destroyed successfully |
public function destroySession($id)
{
$this->db->getCollection($this->sessionCollection)->remove(['id' => $id], ['justOne' => true]);
return true;
}