I am looking at quickly password protecting a website, one folder on a server. I have played around with .htaccess and just realised that it's probably not working because it's likely it's sat on a windows server running PHP. I'am assumming this also means I can't use authenticate in PHP. Does any have any suggestions on a simple proctect I can implement in this scenario ? Thanks.
|
| |||||||||||
feedback
|
migrated from stackoverflow.com Aug 18 '10 at 17:28
This question came from our site for professional and enthusiast programmers.
|
Basic access authentication is not OS-specific. It's part of the HTTP standard, but the implementation details are webserver specific. | |||
feedback
|
|
If you're wanting to solve the problem in PHP solely, you could set a 'landing' page that requires a login or just password entry. Set up a cookie to store that information, then have each page check for the cookie. That's the way I would do it if I couldn't change the .htaccess file or wanted a PHP-only solution. | |||||||||
feedback
|