ded Posted November 9, 2011 Share Posted November 9, 2011 I want to create an ADMIN directory with several directory under that. I want to be certain that the user cannot log into any of the directory unless they have confirmed login. Is $_session id's the best way to go? Should I create on the flyer and attached to username? What is the best practice for this? Regards, DED Quote Link to comment https://forums.phpfreaks.com/topic/250809-security/ Share on other sites More sharing options...
xyph Posted November 9, 2011 Share Posted November 9, 2011 Check out my signature for an article covering everything you need to know about PHP user/pass managment. It provides working examples, and goes very in depth - though I don't agree with their use of the global keyword. Alternately, you can use HTTP authentication if you want to be more simple. http://php.net/manual/en/features.http-auth.php Or use Apache's htpasswd http://httpd.apache.org/docs/2.0/programs/htpasswd.html Quote Link to comment https://forums.phpfreaks.com/topic/250809-security/#findComment-1286837 Share on other sites More sharing options...
ded Posted November 9, 2011 Author Share Posted November 9, 2011 will do.....thank you Quote Link to comment https://forums.phpfreaks.com/topic/250809-security/#findComment-1286841 Share on other sites More sharing options...
ded Posted November 10, 2011 Author Share Posted November 10, 2011 First....thank you very much for this information. Second....sorry for bothering you with this, but I cannot figure it out and it is probably very simple ok....I have read through most of the information and have keyed in the first portion for testing purposes. I have an issue. Once I hit submit, the record in the database is written without a problem, but then a screen pops up that says "Do you want to open or save this file?" When I click open, a notepad shows up reading "User Created". Shouldn't it just echo it on the user-man.php screen? Quote Link to comment https://forums.phpfreaks.com/topic/250809-security/#findComment-1286923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.