sesiones php

This commit is contained in:
victor.monge 2025-05-29 11:33:35 -06:00
parent ef027050f5
commit f3f649ee88
4 changed files with 28 additions and 28 deletions

View File

@ -1,11 +1,11 @@
<?php
//session_start();
//
//if (!isset($_SESSION['usuario'])) {
// header('Location: ../index.html');
// session_destroy();
// exit();
//}
session_start();
if (!isset($_SESSION['usuario'])) {
header('Location: ../index.html');
session_destroy();
exit();
}
require_once __DIR__ . "/../controllers/ControlCandidatos.php";

View File

@ -1,11 +1,11 @@
<?php
//session_start();
//
//if (!isset($_SESSION['usuario'])) {
// header('Location: ../index.html');
// session_destroy();
// exit();
//}
session_start();
if (!isset($_SESSION['usuario'])) {
header('Location: ../index.html');
session_destroy();
exit();
}
require_once __DIR__ . "/../controllers/UsuarioController.php";

View File

@ -1,11 +1,11 @@
<?php
//session_start();
//
//if (!isset($_SESSION['usuario'])) {
// header('Location: ../index.html');
// session_destroy();
// exit();
//}
session_start();
if (!isset($_SESSION['usuario'])) {
header('Location: ../index.html');
session_destroy();
exit();
}
?>
<!DOCTYPE html>

View File

@ -1,11 +1,11 @@
<?php
//session_start();
//
//if (!isset($_SESSION['usuario'])) {
// header('Location: ../index.html');
// session_destroy();
// exit();
//}
session_start();
if (!isset($_SESSION['usuario'])) {
header('Location: ../index.html');
session_destroy();
exit();
}
require_once __DIR__ . "/../controllers/UsuarioController.php";