0
<?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 !!

5
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by karthik_ppts
0

I did not work, unfortunately... Thanks for trying though :)

0

Maybe more information will help:

It seems everything is loaded, in the bottom of the browser it says "done". But there is only a blank page...

Hope this can help

0
<?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!

0

Problem solved! I just had to move some other javascript in my <head> tags all the way down in the <body> section... I guess the script interfered with the php somehow... I don't really care because it is working now anyways...

Thanks again !!

0

Problem solved! I just had to move some other javascript in my <head> tags all the way down in the <body> section... I guess the script interfered with the php somehow... I don't really care because it is working now anyways...

Thanks again !!

Then please mark this Thread solved :)

0

below this post under the heading of "Has this thread been answered?" click on the "Mark this threasd as solved" Link.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.