Friday, June 18, 2004 03:57 AM
This can be achieved in 2 ways:
1.Use Database table to set a flag Yes/No for logged in user.
2.Use a HashMap to store the login info,against the User Name as key and set the scope of this HashMap to 'application'.
DrawBack/Precaution:You should take extra precaution to logout the user forcefully if he/she closes the window or exits the application.