aspose file tools*
The moose likes Servlets and the fly likes basic windows authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "basic windows authentication" Watch "basic windows authentication" New topic
Author

basic windows authentication

Prabhakar Pentela
Greenhorn

Joined: May 10, 2004
Posts: 12
Hi,

I have JSP Page with login link that point to the login.asp that resides on the IIS webserver. I protected this page with basic authentication.When the user clicks the link, windowns login popup will be prompted. If everything is okay then my login.asp will redircet to the following link.
responce.redirect(http:\\localhost:7001\loginaction?username=text

my problem is once the user is logged out, i am sending to. home page. If he click the login link once again i am not getting the popup but it is successfully going to the application. Anybody can help me how can i force this one in my code.

Thanks,
Prabhakar P
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You're probably loggin out by using a "session.invalidate()".

Basic authentication works differently, it adds its own Cookie to the HTTP header, and you need to remove this as well, otherwise your application will always accept them as authenticated.

The name of the cookie you need to clear is 'Authorization'.

Use cookie.setMaxAge(0) to delete a Cookie, but you may need to check the API to find how to get the cookies and then find the correct one to delete.

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic windows authentication