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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.