posted 23 years ago
Well, that's the problem. There are systems where you don't have to log in at all, so they HAVE no user IDs. Conversely, a lot of corporate environments have users logged into Novell, NT domains, Windows Workgroups, mainframes, etc. all at once, and they may not all be under the same ID (this can be very messy, but I've experienced it myself!).
In an Internet context, the only meaningful user ID is the one your web server interacts with. For non-IIS servers or IIS using other than Windows user identification, this means that on the server you set up your own user account database. If your web server is doing the authentication, the user ID typically shows up in the server log (it's also available as the REMOTE_USER CGI variable in Apache).
If you are in a controlled (intranet) environment, I'd recommend the System.getProperty() over JNI-ActiveX, though. Either way you have to sign the applet, and getProperty is both more portable and more secure than ActiveX.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.