[add] Verifying session

This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-12 08:51:22 -06:00
parent 6c91cad46c
commit cb5d30b4e0
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,12 @@
<?php
session_start();
if(!isset($_SESSION['userName'])){
header("Location: ./login.php");
exit();
}
?>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="../css/bootstrap.min.css">

View File

@ -1,3 +1,12 @@
<?php
session_start();
if(isset($_SESSION['userName'])){
header("Location: ./landing.php");
exit();
}
?>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="../css/bootstrap.min.css">