I have a web application inside where i need to check whether the user has sufficient permissions / roles/rights to access the page. I had set the users rights in a table with USER_ID
, ROLE_ID
. and when a user is logging in to the application, I will be reading the records for this user and the construct a string and assign to a session variable. When the logged in user access each page, I will read the value from session variable and then parse the string and then check whether this user has sufficient rights assigned to it.
Now I afraid whether accessing the session variable in every pages load would affect the performance. Is there any alternative way to solve this?