Hey everyone.
Firstly, I must state how I've done this, and what I've tried...
Using tech_support's Making PHP Templates tutorial, I have successfully created the website.
In harsh87 thread, thetestingsite posted this link.
So I am trying to use the Basic User Authentication one...
Anyways, I cannot seem to get this to work, because ofbeing in the header of my index page (as I am using a php template).Code:<?php // like i said, we must never forget to start the session session_start(); // is the one accessing this page logged in or not? if (!isset($_SESSION['basic_is_logged_in']) || $_SESSION['basic_is_logged_in'] !== true) { // not logged in, move to login page header('Location: login.php'); exit; } ?>
So... I need to find something that will work with a php template
Any suggestions?




Reply With Quote
Bookmarks