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