I'm making a system for asset management.there three categories of user in the system, the Administrator, Subadmin, and limited user.Administrator can do anything, Subadmin only served to verify the data and the limited user can only see just finished data / View Data
in the database, access rights characterized by number.Administrator = 0, SubAdmin = 1, and a limited user = 2.
to enter the system, each user must login, at the time of login, access rights saved into session. the problem, how do I check the session in servlet file (. xhtml)? for example there is data in the DataTable. there is menu "edit", "delete", and "Verify". if admin is logged on, then the menu "edit, delete" will appear in the table row, if SubAdmin logged on, then just appearing menu "verify ", and if the limited user is logged on, the menu does not appear.
Should I check servletnya session at the file, or is there another way? how ?
Thanks much..