aspose file tools*
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
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.
I agree. Here's the link:
subject: Removing authorization data from browser.
Similar Threads
How to authenticate HttpURLConnection?
BASIC authentication doubt. Connection refused: connect
The server sent HTTP status code -1
Basic authentication without a secure connection