WEB-230-073-074 | PHP Sessions | Assignment
Complete the following:
- Create a folder in your “htdocs/series/” folder named “php-sessions”.
- Create a file in your “htdocs/series/php-sessions” folder named “index.php”.
- Write the code that that results from php-sessions video.
- View your view.php file on your localhost in a browser and take a screenshot.
- Save the screenshot to the “series/php-sessions” folder using the file name
“web-230-073-074-php-sessions”
- Save the screenshot to the “series/php-sessions” folder using the file name
Extra Credit
- Add the session_start to establish a session to capture the information.
- Move the $msg and $msgType variables to top of script to make them global.
- Check for session variables and update active variables with them when they are available.
- Update session and active variables with updated information submitted by the user.
- Add condition to catch un-submitted form but session information available.
- Create the unset-extra-credit.php page and add the session_start, session_destroy, and header redirect to it.
- Add the form and button to allow users to destroy their session.
- View your extra-credit.php file on your localhost in a browser, before entering data, and take a screenshot of it.
- Save the screenshot to the “series/php-sessions” folder using the file name
“web-230-073-074-php-sessions-extra-credit-no-data.jpg”
- Save the screenshot to the “series/php-sessions” folder using the file name
- View your extra-credit.php file on your localhost in a browser, after entering data, and take a screenshot of it.
- Save the screenshot to the “series/php-sessions” folder using the file name
“web-230-073-074-php-sessions-extra-credit-submit.jpg”
- Save the screenshot to the “series/php-sessions” folder using the file name
- View your extra-credit.php file on your localhost in a browser, after entering data, and take a screenshot of it.
- Save the screenshot to the “series/php-sessions” folder using the file name
“web-230-073-074-php-sessions-extra-credit-session.jpg”
- Save the screenshot to the “series/php-sessions” folder using the file name
Submitting Assignment:
Save folders and file named “series/php-sessions/” in your GitHub “WEB-230-Assignments” repository and submit a link to the “series/php-sessions/” folder in your repository.
Your submission should look similar to the following:
GitHub Repository for: series/php-sessions