Logging out from protected directory
Posted: Thu Sep 21, 2006 6:54 pm
Hi,
I have password protected a directory on my website using the Protect option in cPanel, which I assume asigns a password to the directory in the .htpasswd or .htaccess file... Unfortunately my host hides these files from ftp clients and cPanel File Browser... So I cannot tell which file it is in... If i was to guess it is in the .htaccess file...
Anyway... on to my quetsion... I login to the directory using the login box that pops up in the browser automatically when i try to access the directory... How would I logout using a PHP script (or any other method). --- NOTE: I need to put a logout button on the PHP pages within this protected directory...
Any help would be appreciated!
Thanks!
Rehan
I have password protected a directory on my website using the Protect option in cPanel, which I assume asigns a password to the directory in the .htpasswd or .htaccess file... Unfortunately my host hides these files from ftp clients and cPanel File Browser... So I cannot tell which file it is in... If i was to guess it is in the .htaccess file...
Anyway... on to my quetsion... I login to the directory using the login box that pops up in the browser automatically when i try to access the directory... How would I logout using a PHP script (or any other method). --- NOTE: I need to put a logout button on the PHP pages within this protected directory...
Any help would be appreciated!
Thanks!
Rehan