Can I logout from HTTP Authentication?

C

Christopher Nelson

I have an application secured with HTTP Authentication (RFC 2617).
The protocol doesn't provide for "logout" but I'd like to provide the
user a way to close a session.

If there was a way I could use JavaScript to tell the browser "forget
the cached info for this user of this system" (the nonce, the opaque,
the password, something), then the next GET would not include an
Authorization header and I'd have accomplished logout without needing
protocol or server support.

But I don't know what to set or what clear or what function to call,
if there even is one. Is there a way to programatically tell a
browser, "Flush your cached security information"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top