Logging out from protected directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rehandalal
Forum Newbie
Posts: 10
Joined: Mon Sep 18, 2006 3:44 am
Location: Mumbai, India

Logging out from protected directory

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

rehandalal
Forum Newbie
Posts: 10
Joined: Mon Sep 18, 2006 3:44 am
Location: Mumbai, India

Post by rehandalal »

Checked it out... tried some of the methods... They dont seem to work...
Post Reply