#1 (permalink)  
Old 10-08-2005, 02:14 PM
Registered User
 
Join Date: Aug 2004
Location: Atlanta, GA
Posts: 15
rhendrix9 is on a distinguished road
Password Protected Dir Logout

Iam just starting out. I created a password directory, How do I implement a logout?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-08-2005, 04:07 PM
bamasbest's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 531
bamasbest
Re you using .htaccess or another solution for protecting your directory(ies)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-09-2005, 01:24 PM
Registered User
 
Join Date: Aug 2004
Location: Atlanta, GA
Posts: 15
rhendrix9 is on a distinguished road
I used the "web protect" function from cpanel. I see an .htaccess file. I just started out, is there a better way?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-09-2005, 01:32 PM
bamasbest's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 531
bamasbest
The web protect/.htaccess feature is quite secure.

However, once a browser authenticates, that browser can visit any number of sites and return to the authenticated site without having to re-authenticate, so long as it has not been closed.

So, a logout would require closing the browser.

A snippet of javascript like the following could work for most visitors.

Code:
<form>
<input type=button onClick='window.opener=self;window.close()' value='Logout'>
</form>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc