Userrights to show menus
-
hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution
-
hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution
Why is it so slow ? Perhaps you need to reengineer it ? How are you generating menus ? I'd think if the menu never changes,. you could indeed generate it once, then store it somewhere. Or if it takes a long time to generate, you could generate it and store it so that you can just pull it from your DB, for example, without having to do the calculations every time.
Christian Graus Driven to the arms of OSX by Vista.
-
hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution
Hi, By using javascript also you can set the access for different user's