Web Hosting Talk







View Full Version : Logout Button for htaccess/htpasswd authentication


vSector
11-25-2002, 07:50 PM
Hello Everyone,

I have a members area that is secured using a standard .htaccess and .htpasswd file which works great. The questions is how do i make a logout button using php?

Any help would be great!

Akash
11-26-2002, 01:10 AM
http://www.tek-tips.com/gviewthread.cfm/lev2/3/lev3/22/pid/65/qid/371382

That thread says it's not possible.

This one shows a work around for it. Haven't tried it but it should work: http://www.tek-tips.com/gviewthread.cfm/lev2/3/lev3/22/pid/65/qid/370602

123x
11-26-2002, 10:41 AM
Yes its not posible.

vSector
11-26-2002, 05:22 PM
well I got it to work...

All as i do is have the logout button link to http://baduser:baduser@domain.com to log the user out.

works like a charm