Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this part, you will design and implement a login / logout system where a student will be able to login as a student user
In this part, you will design and implement a loginlogout system where a student will be able to login as a student user through a web interface. An administrator of the enrollment information system will be able to login as an admin user through a web page interface and will have more privileges to access and update the database.
You will design and implement PHP programs that generate student and administrative user web pages. The session of each loggedin user has to be managed appropriately to guarantee access control by different types of users.
Data Requirements
Each user has a unique username and a password. A user also has a first name, and a last name.
An admin user has a start date while a student user has a date of admission.
Some users are both student users and admin users student admin We do not have any other types of users in the system.
A user session has a unique session id and a session date.
A user may own several sessions one for each login while a session can only be owned by one user.
A user may own zero sessions when not logged in while a session must be owned a user.
Function Requirements
Login: A user can login the system using hisher username and password. When login is successfully, a user session should be generated for the user.
Session management: A user session should be used to verify a users identity after a user has logged in Except the login page, access to any other webPHP pages of the system should be denied unless a provided user session can be verified. See Lab for more details on session control.
Logout: A user can logout the system after logged into it When a user is logged out, the respective session of the login of the user should be removed from the system.
Web page access: Make sure that a student user can access only student user pages while an admin user access only admin user pages. A student admin may access both types of web pages.
Changing password: A user admin or student can change hisher password after login
Managing users: An admin user can list all users or search for any users in the system. An admin user can add new users, delete users, and update any information pieces of an existing user.
General Requirements
You should complete the following tasks for Part One of the project:
Create an EER modeldiagram based on the data requirements.
Create a database schema based on the EER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started