chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
<?php
session_start();
if(!isset($_SESSION["username"]))
{
header('Location: login.php');
exit;
}
?>
I have this code on the page I want to be password protected. Everything is working perfectly fine on Firefox, but in Internet Explorer it doesn't load the content of the page once the login information has been verified. Any suggestions? It can't really be my coding since it works fine with Firefox...
Thanks !!
1. Receive data from login form and clean them
2. Check if username is in DB and password hashes match
3. If it is top-secret, match other fingerprints
4. if matches, log them. If not redirect them
5. Protect page in case one uses direct url on browser!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392