Reference no: EM131559836
Lab
If you use an external source (i.e. a web-page, the required textbook, or an additional book) to help you answer the questions, be sure to cite that source. You should probably always be citing a source.
Problem
Having just learned about sessions and simple authentication, we are ready to add these features to our Q&A forum from Lab 1. In this lab, you will allow people to register for an account. Users have the following attributes:
First name
Last name
Email address
Password (kept in plain text for now)
Furthermore, all questions should now be associated with a registered user. In other words, you will need to add a column to your questions table that is the primary key of the user.
Basic Requirements:
Add a login screen
Add a user registration screen
When a user is logged in, the header should welcome the user and have link to the home page, the user profile, and a log out button.
When no user is logged in, the header should merely have a link to the home page, a link to register, and a link to log in.
Without logging in, users should be able to view questions and other users' profiles.
When logged in, users should be able to create, edit, and delete their own questions (but not others' questions), and edit and delete their profile.
No duplicate email addresses should be permitted.
All sessions should be over HTTPS.
Attachment:- lab.rar