Forum Moderators: coopster
There should be no need to explain my code because php is browser independent. What's happening is that when I enter the user/pw on the login page, (assuming correct usr/pw pair) I get re-directed to the main admin page (index.php) ... that part works. However, clicking on a nav link sends me back to the login (as if the $_SESSION['user'] variable was never set).
I've "lowered" my privacy setting in IE Internet Options to the "lowest" setting to accept all cookies.
I've "lowered" my privacy setting in IE Internet Options to the "lowest" setting to accept all cookies.
That was my first thought. I assume that you've cleared the cache, restarted the browser and all that fun stuff.
You aren't using an image-based submit button are you and then checking for it by name are you? If you have
<input class="submit" type="image" name="login" value="login" src="/imgs/login.png" alt="login" />
When you post this, FF will post
[login_x] => 44
[login_y] => 17
[login] => login
but IE will post only
[login_x] => 41
[login_y] => 19
So if you are checking
if (isset($_POST['login']))
this will always be false in IE.
That's just one possiblity. Try dumping your post vars and see what's different. Checkboxes and a few other things are different in IE in ways similar to what I just described.
print_r($_POST) is your friend