Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting username variable in Java

Status
Not open for further replies.

Magnus53

Programmer
Jul 25, 2002
73
CA
Hi guys,

I'm setting up a Apache/Tomcat server with a protected directory. I want to know if it's possible to get the username of the person logged in. I would be doing this in a java program. So is this possible? Is it easy?

Thanks

Guys
 
Hi,

I'm not familiar enough with java so I'm not sure if it is possible or easy. Sounds like what you need to use a function like the unix command 'who' that will display...

All users logged in
tty device (line) they are using
When they logged in
Idle time
Where they logged in from

Regards -

Blizz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top