There can also be some server specific behaviour. For example, WebSphere will only return the user name in resources requiring authentication. If the resource doesn't require authentication and the user is logged in, it will still return null :roll:
thank you, but the user is logged using nt authentication and the system has environment variable username which has the user name value also, the user is authenticated in the domain
Measure twice cut once carpenter theory <br /> <br />Baiju <br />SCJCP, SCBCD, IBM-486, IBM-484, SCEA Part I
That's becasue it can't be done -- at least not via the standard Java APIs. You'd need to interface to some Windows-specific mechanism. [ August 24, 2005: Message edited by: Bear Bibeault ]