-
The simplest is to add a field to your user table, save his permissions, and then judge after logging in successfully, to achieve the difference.
In fact, Microsoft has long thought about this matter, you go and look at user permissions.
The settings are in.
Let's see the tutorial for details. Give points.
-
I use a class to store multiple static fields for identification.
Click Login to determine that the user information will be stored in the static field after successful login.
Read static fields when page load events and then read the profile of the logged-in user you need in the database.
-
Make different pages according to different functions, and then point to different pages after logging in successfully, use redirect(url), remember the passing of parameters.
-
Use the global variable session, by logging in, to determine the value of the variable, you doll, the Cultural Revolution questions can't be coarse, you still have to organize your language.
-
Use 2 panel controls, if you are not logged in, show the first one, and after logging in, show the second one, just write the corresponding ** in it, this is a relatively simple way.
-
What a mess.
-
This is the issue of permission allocation.
-
First of all, you need to set a limit in the database, any one can be, and then make a judgment on the submission page, if the permission value of the Ximoguo account is the one you set, then jump to the web page you want to restrict, if it is not the permission value you set, then jump to another page.
-
I'll make one and I'll send it to your mailbox in a moment.
-
You can do it by following the methods mentioned in the above two people.
-
You can determine their username when you log in, and then dynamically load their backend homepage based on their permissions (which of course is actually a field stored in the database).
-
Each record in the database will have an ID number, and the user tag belongs to that user, so that when logging in, you only need to read the record of the ID number of the current user in the database.
select * from inofs where uid=1
-
After logging in successfully, get the user identity, and then jump to different pages according to the identity!
This can be written in ASP!
select case rs("User Identity field")case "Identity 1"
Interface 1")case "Identity 2"
Interface 2")case "Identity n"
Interface n")case else
Other interfaces")
end select
-
A lot. For example, add a permission attribute to the class. Determine this property to enter a different interface.
-
I'm also a forum worker!
It is recommended that you do a backstage!
Administrator front desk login is also possible!
But you can only change the system settings if you log in in the background!
-
It's actually quite simple.
Analysis: We need to have a permission field to distinguish the user's permission level, and then after we verify its account password, we can do it when it jumps.
Completion process: After completing the login verification, we first create a session to store its permissions, and put the user's permissions (that is, $row[) queried when logging in'level']) to the session, and then we only need to determine what the value of the session variable is to output the corresponding page.
Example**: session['admin']=$row['level'] ;For example, if we assign a value like this, we can get the permission value of the logged-in user and record it with session.
if($_session['admin']=="Regular users")else
If there is no problem with your login, our experiment will be successful here, and the ** here should be placed after completing the login verification, that is, you can replace your original jump.
To add (* We're working on the login verification page (that's what the canonical name should be.) )
-
Judge the user, give the user a permission, or you write a single choice for him Write a category such as teacher and student, teacher login, select teacher login, student login, select student login.
-
Directly link to the database according to the account, and redirect the specified associated URL.
-
Write judgment, set a login permission to put in the database, such as an employee, a leader, is a radio button, you click on the leader and submit your login permission is 1, and then according to the login permission of 1 to find the account and password. Verify that you have successfully logged into; Do you want to be specific?
permission=$post["The name of the radio button"];
if($permission==1).
elseif($permission==0).
-
Add a button listener event, and then update the UI in the listener event.
If it's just a few partial jpanel updates, write directly in the listener event.
If the two interfaces are completely different in style, it is recommended to switch directly to the other interface.
-
After the user clicks the login button, the user name and password and other information are sent to the Fangye's own backup core shouting web page, and then obtain the user information from the access database, and jump to a different web page, I don't know what language you use.
asp.
if userpowder = admin' then"admin is stupid"
In Windows (Windows XP, Windows Vista, Windows 7), it is actually easy to implement automatic login users at boot. >>>More
SSH passwordless access.
cd /root/.ssh/ >>>More
All Wonderful Features and Privileges (38 items) More Distinguished Red Name Top Ranking Super Pretty Card QQ Level Acceleration Filter Ads Forum Privileges VIP Mailbox Privileges Cooler Member Avatar Member Magic Emoticons Member Bell Member Greeting Card Member ** Weekly Graffiti Emoji Super Privileges for a Stronger Member Group Member Chums Friends Limit (1000 people) Network hard disk ( Web Album (1G) QQ Mailbox (3-6G) Member VIP Server Login More Free File Transfer Offline File Roaming Emoji Roaming Chat history roaming Email Mobile Notification Enhanced Friend Online Mobile Notification Offline Message Mobile Notification Mobile Phone Settings Avatar Mobile Phone Settings Xuanling Network Memo Network Favorites More Secure and Super Security Protection Phone Abnormal Phone Notification Mobile Phone Reset Password Considerate Login Tips Friend Clone More Affordable Recharge Q Coin Account Discount 5% Off Premium Group Payment.
How to open a member]: Bank card every month; Mobile phone: $10 per month; [QQ members 10q coins per month; Discounts are available during the event; Bank card per month; Mobile phone: $10 per month; [There are two ways to open QQ members: monthly subscription and prepaid mode; (Except for system gifts) [Monthly payment (calculated according to the natural month, from the 1st of each month to the end of the month is one month): >>>More
Summary. Membership top-up needs to be done by following these steps:1 >>>More