create authentication php

This commit is contained in:
Ismail Cadaroski 2017-01-24 19:26:09 +01:00
parent 4c8e936c2a
commit f36daf613f
1 changed files with 6 additions and 0 deletions

6
db/auth.php Normal file
View File

@ -0,0 +1,6 @@
<?php
session_start();
if(!isset($_SESSION["username"])){
header("Location: db/login.php");
exit(); }
?>