title: Checking Session Access in xhtml JSF
body: <p>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</p>
  
  <p>in the database, <strong>access rights</strong> characterized by number.Administrator = 0, SubAdmin = 1, and a limited user = 2.</p>
  
  <p>to enter the system, each user must login, at the time of login, <strong>access rights</strong> 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.</p>
  
  <p>Should I check servletnya session at the file, or is there another way? how ?</p>
  
  <p>Thanks much..</p>