Question: Basic Content Create the following folder structure in your htdocs folder ( or the csis 2 4 4 0 folder, if you created one, in

Basic Content
Create the following folder structure in your htdocs folder (or the csis2440 folder, if you created one, in your htdocs folder)
session
Inside of the session folder, copy all of the files and folders from your insecure folder from the Insecure Passwords assignment
Run this new web site (localhost/session) and test it ensuring that it runs exactly as the Insecure Passwords assignment
Modify the code to include the following new components:
Log in Persistence
Log out Button / Link
Home Button / Link
Log in Persistence:
When the user logs in, create a session variable
If the user goes to the Home link (and the session variable exists) then the data from the text file will still display
If the user goes to the Home link and the session variable is not set, the log in form will display
Log out Button:
Clicking the log out button will destroy the session and redirect to the index.php page.
Upon loading index.php the log in form should appear
Home Button:
Clicking this button simply goes to index.php (the page you're already on, since this site only has one page other than the log out page)
If the log in session was created then the page will show the txt file info. If the session is not set, the log in form shows.

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 Databases Questions!