I really appreciate any guidance. Also if you think I should be doing this all different then please let me know what you suggest.
Page 1
Code: Select all
<?php
$value = "https://www.web.com/office/admin/queries.php";
setcookie("TestCookie", $value);
//Only Allows Authenticated users to access the page
$Techs = $_COOKIE["Techs"];
if(!isset($Techs)) {
$page = "https://www.web.com/office/admin/queries.php";
setcookie("page",$page);
}
?>Page 2
Code: Select all
<html>
<head>
<meta http-equiv="refresh" content="2; URL=https://www.web.com/office/DB_authenticate.php">
</head>
<body>
<?php
echo "You must first login.";
echo $_COOKIE["TestCookie"]; //This just to see if the cookie is working
?>