Jump to content

Recommended Posts

Good evening,

 

I have a site where you can login and it works all fine and dandy. Currently, after login, they are sent back to the homepage, where PHP checks whether a session is set to decide upon what content to print. I am going to change this so that they redirect to an actual members area.

 

I have tried to create a visual of my site directory to help assist my question. Here it is:

 

[] = Directory Name

--> Sub Files



[GamingSite]

    -->index.php

    [styles]

    [js]

    [images]

    [core]

    

//Inside [core]



-->register.php

-->login.php

-->logout.php

-->upload.php

-->sidebars.php

-->initialize.php

-->reset.php

-->page_views.txt

[content]

[db_queries]

[demos]

 

Where should I create my content for the members area? Should I create a new directory within the /core/ directory let's say core/members_area/ or should I just put it with my other page content (which is in the /content/ directory, believe it or not! :tease-03: )?

 

Thanks in advance for your thoughts & assistance.

 

Kind regards,

 

L2c.

Link to comment
https://forums.phpfreaks.com/topic/275570-where-to-create-members-area-files/
Share on other sites

Members area?  restricted access?

 

This is really a personal taste thing.  AS you can put it anywhere you want to.  Some people opt to put it above the public HTML folder (htdocs), others prefer to put it inside of the public directory and .htaccess deny anyone from using it.  Still others just let their log in system handle all of the security (must be very robust).  All in all, it is your decision. 

Thanks for your reply.

 Some people opt to put it above the public HTML folder (htdocs),

That's exactly what I have read about which is why I was unsure of whether it was a 'standard' thing to do for member areas.

 

Still others just let their log in system handle all of the security (must be very robust)

After reading this I immediately thought about checking whether a session is set, and if it isn't, then header them back to the homepage or something. Would that suffice or would there have to be other checks put in place to make sure someone doesn't just access the area without being logged in, and if so, would you be able to give me a hint at what I should be looking for?

 

Kind regards,

 

L2c.

Edited by Love2c0de
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.