hi,
i have to develop a web page which is having a menu with 2 levels of hierarchie. the menu items which should be seen to any user should be according to user's role for eg. a general user should get x,y,z menu items, a superuser should get all etc.the identification of role should be on server after the user enters his user name,passwd.
any help ???
Software/Hardware used:
ASKED:
June 20, 2005 4:48 AM
UPDATED:
June 21, 2005 9:17 AM
thanks,but will you please exlain it?
thanks,but will you please explain it?
Well, what sort of server-side technology are you using? That makes a big difference as to *how* you’d go about doing it, but from a high level it’s the same.
Basically, when you’re rendering the menu, check to see which role the user belongs to — I’d suggest having a database table which links users to roles (if they can have multiple roles) or a column in the user table if they are limited to a single role.
good luck!