views:

48

answers:

1

As you know Firefox remembers the basic authentication info for a user once the user logs in.

How do I remove this programmatically using javascript?

Scenario:

  1. User logs in
  2. An ajax request using basic authentication is sent to the server
  3. If successful, firefox then remembers authentication info
  4. If user logs out, firefox still remembers it, unless browser is restarted.
+1  A: 

It's not possible from within the sandboxed environment of a script running in a web page.

It's possible for a Firefox extension to do this (as Web Developer Toolbar does), but not a web page

Gareth
Thanks Gareth..
portoalet