blocked shopping.php for non-logged in user

This commit is contained in:
CodeServer
2021-07-30 11:44:17 +01:00
parent 8f34787d50
commit e3a9def0db
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -4,6 +4,10 @@
require_once '../php/connection.php';
$conn = connectMysql();
session_start();
if(!isset($_SESSION['username'])) {
header('Location: ../index.html');
exit();
}
?>
<head>
<!-- Required meta tags -->