| Author |
How to retrieve the user id from the web browser
|
Brian Pembroke
Greenhorn
Joined: Jan 21, 2003
Posts: 6
|
|
I need to be able to retrieve the user id of the user logged in from the web browser. I do not want to prompt the user for a login id and password. The is for an internal application. All the users will be using IE and Windows. I need to be able to retrieve the id from a Java Servlet. This is a very easy thing to do in IIS. HttpContext.Current.User.Identity.Name.ToString() Any ideas would be greately appreciated. Thanks, Brian
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12324
|
|
How are you handling user log-in? I suggest you look at the methods in the API for HttpServletRequest - for example: String getRemoteUser(); Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: How to retrieve the user id from the web browser
|
|
|