Role based access in php?

In my application i want to hide one button from particular users .How i can achieve this?

Add a field to your users DB table (or table used to hold login info) such as role or level and query and save this value to session when user logs in… You can use this session value to control access around site (buttons they can press) as well as menus, page permissions etc.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.