How to structure web application with part of it being secured (SSL)

Posted by spirytus on Stack Overflow See other posts from Stack Overflow or by spirytus
Published on 2010-05-10T23:28:38Z Indexed on 2010/05/10 23:34 UTC
Read the original article Hit count: 220

Filed under:
|

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:

  1. What is the common folder structure for such assuming I code in php with no frameworks?

  2. 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?

  3. What else might be a problem and should be considered when coding that kind of app in php?

Thank you all for any suggestions

© Stack Overflow or respective owner

Related posts about php

Related posts about pattern