session->has('user')) { $this->session->delete('user'); } return $this->redirect('/', 302); } }