commit 37091e591b521ac6c8b7e25dbca244f4717ab82a
parent 0ee62e8bccde46e4e70b8817aa7be30e438c7809
Author: David Liotta <liottad6@students.rowan.edu>
Date: Mon, 17 Dec 2018 15:12:23 -0500
Merge pull request #7 from JKubach/liottad6-patch-1
Added page redirection if user is not logged in
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/website/profile.php b/website/profile.php
@@ -2,6 +2,8 @@
<?php
session_start();
include_once 'config.php';
+if($_SESSION['username'] == null)
+ header("Location: login.php");
$user = $_SESSION['username'];
$email = $_SESSION['email'];