|This package is meant to restrict the access of users to the Web pages of a site according to a definition of user role based permissions stored in a database.
The users are authenticated in login form when they try to access a protected page.
If a user attempts to access a page to which he as no permission, the browser is redirected to access an error page.
Each protected protected Web page has an entry in the database that establishes an association with an integer key value that defines the roles of users that are authorized to access the page.
The access key value defines a bit mask. Each bit is associated to user role. A bit in the access key mask set to 1 determines that the users with that role have access to the page.