jeffkab Posted January 20, 2009 Share Posted January 20, 2009 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 More sharing options...
haku Posted January 20, 2009 Share Posted January 20, 2009 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. Link to comment https://forums.phpfreaks.com/topic/141563-solved-php-user-cms-system/#findComment-741003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.