• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get logged in username  RSS feed

 
Anthony Leroy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
how do i find out the username of someone who has logged into the site with IIS security (site on an NT server)
thanks,
Ant
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried request.getUserPrinciple().getName()?
This is how it's done with form-based security, worth a shot.
Dave.
 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as soon as some body loging s in get the user name by request.getParameter and put it in the session and use it where ever required
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!