when not logged in goto login
This commit is contained in:
parent
974edf32b6
commit
4dbc38fc66
@ -9,7 +9,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
if(!isset($_SESSION['userid'])) {
|
||||
die('Please <a href="login.php">login</a>');
|
||||
die('<div class="alert alert-primary" role="alert">Please <a href="login.php">login</a></div><meta http-equiv="refresh" content="2; URL=login.php">');
|
||||
}
|
||||
|
||||
$userid = $_SESSION['userid'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user