Home > database >  Database backend login how to identify the identity of the person
Database backend login how to identify the identity of the person

Time:09-21

The great god! I do the back-end is a college student,
I want to ask, how a web page backend implementation login to identify the identity of the person to show a different page?
Such as the system of a company, staff members login display page and general manager of the login page and function is different,
The back end what to do! How to identify!
We studied the Java SQL server MySQL
Thank you very much the great spirit guide

CodePudding user response:

Everyone has a status data, when login to read out together, and then according to the different pages of identity judgment according to function

CodePudding user response:

Has nothing to do with what language you use,
Key or database table design,
Users, roles, permissions (can be associated with the menu or button) this three tables you want to design good,
Permissions, can see the menu or button will be more,

That's it, now see,
I suggest you search the user role authorization table design, don't understand to ask again,

CodePudding user response:

A user has a variety of roles, a character may correspond to multiple permissions,
A permission can control page display or some buttons, column top,
  • Related