toolman Posted October 25, 2009 Share Posted October 25, 2009 Hi there, I am currently developing a simple CMS. I am very new to PHP and wanted to ask the best way to create the admin login. Should I create the admin login on index.php and then forward it to a new index page, or is there a way to do it so it is on the index.php page and when the admin logs in, it remains on the index.php page, but then displays all the admin links etc? Sorry if this sounds stupid! Any help would be appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/178957-best-way-to-create-a-login-formpage/ Share on other sites More sharing options...
abazoskib Posted October 25, 2009 Share Posted October 25, 2009 Why not do a simple check for a session variable? At the start of your page you may choose to check for a session id, and if it exists, the user is logged in and you can show the links. If it doesn't, display a log in form. Link to comment https://forums.phpfreaks.com/topic/178957-best-way-to-create-a-login-formpage/#findComment-944163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.