probando conexion5

This commit is contained in:
2019-01-14 22:30:58 -06:00
parent 2fc6e7de52
commit 011bdc22d6
2 changed files with 30 additions and 18 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
<?php
session_start();
print_r($_SESSION['usuario']);
if (isset($_SESSION['usuario'])){
if ($_SESSION['usuario']['tipo'] != "admin"){
if ($_SESSION['usuario']['perfil'] != "admin"){
header('Location: ../../usuario/');
}
}