Different people will always want different things from a web site, and a web site designer will often want to limit what some people can access on their web site whilst allowing other people to see more information. For instance, on the same web site:
- some users may only be allowed to browse general information
- some users may be allowed to see confidential information
- other users may be allowed to update information on the web site
All of this can be achieved by a few lines of PHP code, and this PHP code needs to alter what is displayed on a web page according to the group that a user belongs to.
The Concept of a User Group
It is possible for the PHP programmer to give different levels of authority to different users, for example: