Forum Moderators: coopster

Message Too Old, No Replies

How to logout of HTTP authenticaion using PHP

         

smc_one

2:03 pm on Aug 11, 2005 (gmt 0)

10+ Year Member



Hi,

I have a HTTP authentication protected php script using htaccess.

I want to add a "Logout/Exit" button, that will exit the HTTP access session, so they are required to login again.

Im not sure if this is a HTTP header issue or PHP issue.

Can someone help?

Steve

ergophobe

7:35 pm on Aug 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Acutally, I think the answer is no, nobody can help. According to the W3C note on authentication


HTTP Authentication has the addition problem that there is no mechanism available to the server to cause the browser to 'logout'; that is, to discard its stored credentials for the user... Requests for how to force 'logout' appear almost daily in the netnews html and cgi authoring groups...

[w3.org...]