Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a question that already posted here.(My previous related questions here Design pattern for permissions[^], Design pattern for loading[^])

I want to build a project (web site) that have a few kind of users.

Administrator - that can do every thing in the site
Registered user - that can do every thing in his page.
Unregistered User - that can only watch the web.

My question is what is the design pattern or that I should use?? and can I do it?
Need answer as fast as possible.
Thank you.
Posted
Updated 29-Apr-11 6:54am
v2

1 solution

You'll have to store a variable with the permissions and then react in consecuence...

In order to do that I would go to PHP or ASP... something that could be programmed and that could react in different ways depending on variables and so.

- You could use a header that would look at the login information, if the login is not done, then ask only for the passwords and don't show anything else.

- You should prepare different pages depending on the level of the user.

- Remember to put the external code (or the code that can't be seen by everyone) in a place that robots from the search engines can't see it...

HTH...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900