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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/11/672d9b7d9697e_173672d9b7d6c7e6.jpg)
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
Get step-by-step solutions from verified subject matter experts
