Hey Michael, I think you really only need to check the $_SESSION array,
not necessarily each index.
if (!isset($_SESSION)) {
// login
header('Location: ' . MEMBER_LOGIN_PAGE);
} else {
// session exists
}
However, if you want to have non-empty values for your session variables
you should
I think it would be better to use Apache facility of authentication through
Mysq
l
Michael T. Peterson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
To protect certain web pages on my site, I am using the following code
inserted at the very beginning (top) of the page:
?php
2 matches
Mail list logo