Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 789195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:29:05+00:00 2026-05-14T21:29:05+00:00

What is the common pattern to structure web application where part of it has

  • 0

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

EDIT: by secure I mean SSL, sorry should have clarified that 🙂

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:29:06+00:00Added an answer on May 14, 2026 at 9:29 pm

    By Secure, I assume you mean https.

    one way of enforcing this is through the modification of your web server’s config file. (preferably using an include). You can set up different permissions for each directory in your web server, so for example only alow the admin directory and sub directories to be viewed through ssl. (https)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing a few strategies (Strategy Pattern) which have some common behavior and
Say I have a common pattern with a Customer object and a SalesOrder object.
I have a common pattern which Im sure there must be a built-in array
It's common to have an object used application wide. What are the different patterns
I have a graph which I traverse using a typical visitor pattern. I've run
I have a collection of off-line web sites. Every website has a folder with
This is probably a common pattern in coding, though I am not knowledgeable enough
I have the authentication portion of an ASP.NET 3.5 web application complete. I would
I noticed a common pattern is to put JSP pages in WEB-INF folder (as
I'm wondering what the common project/application structure is when the user model extended/sub-classed and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.