View Full Version : how to password protect section

10 Oct 2005, 01:16 PM
I want to have a password protected section on my website.
What is the best way to do it?
I can use cpanel to create a [assword protected directory, but how do I create a function for the user to logout?


10 Oct 2005, 09:39 PM
The web protect feature in cPanel works by using simple .htaccess and .htpasswd files in the folder to be protected. By default, there is no logout feature for this. The user would normally have to close their browser, not check "remember my password" in the browser or empty their browser's cache and cookies.

There are a few hacks that I found that can produce the effect though. Have a look at: