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
Logging out from protected directory
Moderator: General Moderators
-
rehandalal
- Forum Newbie
- Posts: 10
- Joined: Mon Sep 18, 2006 3:44 am
- Location: Mumbai, India
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
http://php.net/features.http-auth may be of interest.
-
rehandalal
- Forum Newbie
- Posts: 10
- Joined: Mon Sep 18, 2006 3:44 am
- Location: Mumbai, India