sesiones php
This commit is contained in:
parent
ef027050f5
commit
f3f649ee88
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue