Jump to content

[SOLVED] PHP User CMS System


jeffkab

Recommended Posts

Been writing up my own CMS for learning purposes and had a question..

 

I'm building an admin area where only I can login and access via login. The admin area sits in the "/admin" folder in my root, with admin/index.php being my login area, so the location is "root/admin/index.php". However, I want to password protect pages within the root folder, which is a level above the "/admin" folder. For example, if I had my form that allowed me to login at root/admin/index.php but wanted to also made sure that only root/project.php was only accessible if I was logged in, how would I go about doing that?

Link to comment
https://forums.phpfreaks.com/topic/141563-solved-php-user-cms-system/
Share on other sites

I don't really get what you are saying (try re-reading it, it's kind of confusing), but if you are trying to set different logins for different parts of your site, just use a different session variable for each part of the site. That way if someone is logged in to one part of the site, that session variable will be useless in another part of the site.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.