File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Removing authorization data from browser. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Removing authorization data from browser." Watch "Removing authorization data from browser." New topic

Removing authorization data from browser.

roopa sudhi

Joined: Oct 31, 2001
Posts: 16
I have another problem now....
I am using basic authentication to protect my site.the problem is once i log in browser will remember my user id and password and will not prompt for userid and pwd again.
how do i remove the authorization data from the browser?
i should implement this because i should create multiple instances of clients [Auction scenario] on same machine.
i tried to reset the scheme in the response and also i tried to delete basic-cookie nothing happens.
Please help me.
kumar ray

Joined: Jan 23, 2002
Posts: 4
You can try with invalidating the session. or set authorization header to null.

Hope this would help.

roopa sudhi

Joined: Oct 31, 2001
Posts: 16
No its not working.
when i start my browser authorization is null.but when i make a request to the servlet it picks up the authorization code[Basic bnVtZXJvX3Jvb3BhOmVjdA==] i donno from where i tried to kill the cookie do i invalidate the session i mean what is the key?
any suggestions?
I appreciate your help.
roopa sudhi

Joined: Oct 31, 2001
Posts: 16
and though i have set the cookie maxAge to 0still seems to have same value.
JSESSIONID 5742E14420E142A8E25430A19933B343
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Are you using IE ?

Tools | Internet Options | Content | Auto Complete | Clear Passwords

Try that.
Consider Paul's rocket mass heater.
subject: Removing authorization data from browser.
It's not a secret anymore!