What is the common pattern to structure web application where part of it has to be secured. So lets say I have page_a and page_b which do not need to be secured, although should display login information (login fields or login details once user logged in). This web app. also would have secured pages (admin, checkout or similar) secure_page_c and secure_page_d.
My questions are:
What is the common folder structure for such assuming I code in php with no frameworks?
Also how shall I deal with session variables in case user navigates lets say from secure_page_b to non secure page_a or vice versa?
What else might be a problem and should be considered when coding that kind of app in php?
Thank you all for any suggestions
EDIT: by secure I mean SSL, sorry should have clarified that :)