Question: Task 1: [20 marks] Login Feature [10 marks] The login functionality should be integrated with a database, allowing for session management and appropriate redirection based

 Task 1: [20 marks] Login Feature [10 marks] The login functionality

Task 1: [20 marks] Login Feature [10 marks] The login functionality should be integrated with a database, allowing for session management and appropriate redirection based on the user's role during the login process. Users and administrators are required to log in using their respective accounts. In the condition that an account does not exist, a clear message will be displayed, providing instructions for creating a new account. In case the provided username and password do not match, an appropriate message should be displayed to the user, indicating the mismatch. The login redirection and authentication mechanisms should be precisely implemented to ensure their proper functioning. Upon successful login, a session with a duration of 30 minutes of inactivity time should be initiated, incorporating proper expiry time management. Additionally, the user's information will be securely stored in cookies for seamless access and identification. Note: Please ensure that the login feature incorporates the mentioned specifications, along with appropriate validation procedures and corresponding error messages

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!