Authentication and Authorization
Add authentication (movie-login and movie-logout).
In movie-login, include salting/hashing/sanitization.
Add username to session upon successful login.
Write session check code. Include (use PHP include or require) session check to every page (except login and logout pages). This means that when a user goes directly to any page without login, the user will be redirected to the login page.
Upon logout, destroy session and other code (see lecture). Redirect user to the movie-login page upon logout.
Add Authorization.
Add DB table for ROLE. There should be two types of roles: customer and admin. See document for role access info for each use case.
Add PHP code to perform authorization (role matching) in authorizing.php. Include (use PHP include or require) authorizing.php into all secured pages (pages that need authentication to access them).
Add unauthorized.php to direct users without authorization to.
Add one new page to show a list of all Users. Only ‘admin’ has access to this page. Both ‘admin’ and ‘customer’ have access to other Movie pages. (5 pts extra credit for those who did pages for Add/Update/Delete User data).
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.