[PHP] Re: [Q] PHP 101 -- How to check for session existence?

2004-07-15 Thread Jason Barnett
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

[PHP] Re: [Q] PHP 101 -- How to check for session existence?

2004-07-15 Thread Ciprian Constantinescu
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