newlearn Posted June 19, 2007 Share Posted June 19, 2007 How does session works with assigning different roles to users. Like All privileges to Admin and very few to users. Do I create separate pages and redirect users to different privileged pages? If somebody logs on as Admin, he/she can view all the pages. But when an employee logs on, he can only see a few options. How does the above things work? Quote Link to comment https://forums.phpfreaks.com/topic/56250-sessions-with-assigining-different-privileges-to-users/ Share on other sites More sharing options...
akitchin Posted June 19, 2007 Share Posted June 19, 2007 generally speaking, one assigns a "minimum clearance" to each page - any page that a lower level (user) can see, an admin can see and use as well. however, if you specify that the user must have a minimum of "admin" clearance, they will be unable to access it as a regular user. i'd say this is the best way to go about it, as you avoid creating an entirely different set of pages for each user level. if the content changes drastically from user level to user level, then it's worth creating a separate directory for each most likely. Quote Link to comment https://forums.phpfreaks.com/topic/56250-sessions-with-assigining-different-privileges-to-users/#findComment-277838 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.