In my struts2 application, in the login action I am placing the user and role in the session.
I want to keep track of all the users who logged in so as to do stuff like following :
- Avoid multiple login of same user-id.
- Check wheather a user is looged in or not ! Or any body with role Admin is logged in or not !
- and in some other actions !
How to do it any suggestion!
And also how to maintain the issues like
- User close browser without loggin ! etc
Any material with more information of session can also realy help !