//Verificamos si existe una sesion... if (isset($_SESSION['sesion'])) { //unset($_SESSION['sesion']); //Si existe una sesion redireccionamos al dashboard... $newCatcha = new Main(); $this->titulo = "SharedMe | Dashboard"; //incluimos las vistas... //Si no existe la sesion, mostramos el login... include_once './views/dashboard_view.php'; unset($_SESSION['notify']); } else { header("Location: " . BASE_URL . "login/"); } }