• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating users and controlling access based upon roles

 
Praveen Kumar Singh
Greenhorn
Posts: 18
IBM DB2 MySQL Database Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i am creating a page where i need to give user access to some pages on the basic of his role.

this page can be common for all user or may be there will be different pages on the basic of his role.

Please help me on this & tell me how can i do this.

Praveen Kumar Singh
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Praveen Kumar Singh wrote:hi,

i am creating a page where i need to give user access to some pages on the basic of his role.

this page can be common for all user or may be there will be different pages on the basic of his role.

Please help me on this & tell me how can i do this.

Praveen Kumar Singh


One approach which immediately came to my mind:
You can have "Roles" associated with each user. You could store the User details in a Session and based on the User's role- You can give access to the page the user is eligible to view.
That way In the same page you could give access to different controls based on the User's role- Like the Moderation of Forum posts.

Am not aware of other ways, other members will be able to add more to this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic