main->session) { $this->redirect('/home'); } else { $this->redirect('/auth/login'); } } } ?>