How do I make a page aware that the viewer is logged in or not?

Posted by Joann on Stack Overflow See other posts from Stack Overflow or by Joann
Published on 2010-05-07T15:02:34Z Indexed on 2010/05/07 15:38 UTC
Read the original article Hit count: 242

Filed under:

I am building a membership site... I just got thru the login page and I can now login and logout. However that alone doesn't protect all my pages in the root.. How do I go about this? I'd like to set it up like so when the viewer isn't log-in, the page that's being opened would say "Log in first blah3x"... Any help pls??? :-(

© Stack Overflow or respective owner

Related posts about php