Topic
1 reply Latest Post - ‏2013-03-20T03:51:21Z by Shawn_Jiang
SystemAdmin
SystemAdmin
2233 Posts
ACCEPTED ANSWER

Pinned topic request.getRemoteUser() returning null in code deployed on WASCE 2.1.1.6

‏2013-03-18T14:13:30Z |
Hello,

In my java code i am trying to get logged in user id (request.getRemoteUser()) however this is returning null, anyone has idea what must be done to fix this.?

Thanks for your help.
Updated on 2013-03-20T03:51:21Z at 2013-03-20T03:51:21Z by Shawn_Jiang
  • Shawn_Jiang
    Shawn_Jiang
    154 Posts
    ACCEPTED ANSWER

    Re: request.getRemoteUser() returning null in code deployed on WASCE 2.1.1.6

    ‏2013-03-20T03:51:21Z  in response to SystemAdmin
    The servlet Java DOC state:

    "Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. "

    You can check the more possible solution in [1].

    [1]http://stackoverflow.com/questions/7205977/request-getremoteuser-sometimes-returns-null