|
Posted by Erwin Moller on 03/23/07 13:56
Hi,
I have a page that 'demands' a session exists:
Something like:
if (isset($_SESSION['isAdmin']) && ($_SESSION['isAdmin'] == 'Y')){
// OK, continue
} else {
// No good. Redirect to loginpage
header("Location: etc/etc/etc/example");
}
All very basic.
But if I try to view the source of my page in FF by pressing rightmouse
button -> view source, I receive the source of the login page!
I get the impression 'view source' makes a fresh request to get the source
but is not sending the PHPSESSID along with the request, thus delivering
the HTML of the loginpage to where I redirect.
The box in question runs W2000 with FF2.
Did anybody in here experience this weird behaviour (PHP session lost when
viewing source) with Firefox2 too?
By the way: The mainwindow just keeps functioning with the session
correctly.
Thanks for any insights.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|