←
^
→
Java Servlets
User Authentication
A simple way is to use server security (later) and force the user to log in.
You can then do a
String
name
=
req
.getRemoteUser();
to get the name of the user.
It is easy to implement but has some problems:
It requires everyone to create account and log in.
There is no logout mechanism, just kill browser.
Cannot have more than one session at a time.
José M. Vidal
.
47 of 89