This is a "feature" of the browsers.  I have spent many
hours trying to find out whether there is a way to force the
log-on dialog to come up but to no avail.  Browser just
remembers what you have put in last time and sends that
information automatically when you ask for it from servlet.
The only way to force it is to restart Netscape.

Check:
http://help.netscape.com/kb/client/980409-1.html and
http://help.netscape.com/kb/client/970430-10.html

If anyone knows how to do it I would like to know.

dave.

Antonio Villafana wrote:

> Hi everyone,Here is my question........  How can I force a
> log-on using HTTP authentication in my servlet. Currently,
> if a user logs off and tries to log on immediately after,
> he/she is not presented with the authentication dialog. I
> am using
> the<resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED) to
> capture usernname and password if initial try is invalid.
> Also, shouldn't <session.invalidate> destroy that session
> immediately?I'm using ServletExec.......with Apache. Code
> Snippet for session invalidation: HttpSession session =
> req.getSession(true);
>      if (session != null) {
>         HttpSessionContext context =
> session.getSessionContext();
>         HttpSession curSession =
> context.getSession("Login.User");
>         if (curSession != null) curSession.invalidate();
>      } Any Suggestions.....Antonio

--
David Mossakowski              [EMAIL PROTECTED]
Programmer                           212.310.7275
Instinet Corporation

"I don't sit idly by, I'm planning a big surprise"

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to