Page 1 of 1

Logging out from protected directory

Posted: Thu Sep 21, 2006 6:54 pm
by rehandalal
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

Posted: Thu Sep 21, 2006 7:07 pm
by feyd

Posted: Thu Sep 21, 2006 7:31 pm
by rehandalal
Checked it out... tried some of the methods... They dont seem to work...