>>> Constantin Nickonov <[EMAIL PROTECTED]> 26-Jan-00 5:41:37 PM
>>>
>I'm having difficulty getting the HttpSession.getRemoteUser()
Shurely HttpServletRequest.getRemoteUser() ??
>it returns "null", even after I am authenticated with the server.
> The documentation states that it should return the same thing as
>CGI's REMOTE_USER variable, but it does not.
>Is this a browser issue?
The servlet engine must support authentication.
If authentication is working you could try the following code:
...
String authhd=request.getHeader("Authorization");
This should give you the realm and the username and password encoded
in Base64.
Check out my authentication FAQ at:
http://www.tapsellferrier.co.uk/Servlets/FAQ/authentication.html
Nic Ferrier
___________________________________________________________________________
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