How to set the access rights for the pages in asp.net without using Membership and roles concept?

Posted by Prabu_Spark under ASP.NET on 12/14/2012 | Points: 10 | Views : 951 | Status : [Member] | Replies : 2
Hi sir,
Tell me the steps to set the access rights for the pages in asp.net without using Membership and roles concept.
Kindly give me the solution for this problem.

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Pavanandey on: 12/14/2012 [Member] Bronze | Points: 25

Up
0
Down
you can acheive this from database

1) list out the no of pages in pages table
2) list the no of roles in roles table
3) map pages and roles
4) assign users to roles

so the user can asscess the assigned pages to his role.

Thanks
Pavan Kumar
Mark Answer if this fits the need

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 12/14/2012 [Member] Starter | Points: 25

Up
0
Down
Use a database with a table which has all the mappings like which user should access which page. Then during the page load check whether the user is authorised to access this page or not. If not authorised redirect to default page.

It can be done through session also.
for example there are 3 users
1.Normal User,
2.Moderator,
3.Administrator.

give assign flags to them like 1,2,3 and assign the flag to a session during the login, the on each page redirection check the session and redirect.

____________
www.flickr.com/photos/psdesigner/

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response