954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP login query !! Please help !!

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

riseguim
Light Poster
41 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

Just because it works in one browser doesn't mean that the code will be acceptable to all of them.

Don't know if it will fix your situation but here is one solution to a similar problem.
http://www.figured-it-out.com/figured-out.php?sid=181

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

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

riseguim
Light Poster
41 posts since Jul 2011
Reputation Points: 10
Solved Threads: 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

riseguim
Light Poster
41 posts since Jul 2011
Reputation Points: 10
Solved Threads: 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!

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

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

Thanks again !!

riseguim
Light Poster
41 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

Problem solved! I just had to move some other javascript in my tags all the way down in the 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 :)

MooGeek
Posting Whiz
355 posts since Mar 2009
Reputation Points: 26
Solved Threads: 33
 

I don't know how :S

riseguim
Light Poster
41 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

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

Karthik_pranas
Posting Pro
564 posts since Feb 2011
Reputation Points: 96
Solved Threads: 97
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: