I need to add my own webpages to a wordpress theme that are totally independent of the theme. I have seen how to do something like this here using adam's answer
How to add a PHP page to WordPress?
However how would i go about making certain pages require a login? If the user is logged it it says "hi joe, go to your area" and if you arent logged in it says "login here"
The login area can look like a separate section and just be independent php pages. However in the existing pages where would I check login status? I would store this in a session variable probably
I assume this type of thing would be theme dependent but I'm just investigating if it is possible. I am guessing I would have to modify the header file to show a specific message based on session variables.
If anyone has an idea for a better approach or a plugin that does this that would be mucch appreciated
Thanks as ever for your help