Recitation Project / Assignment #4

Session State Management

Due: Monday Feb 22, 2016 - 11:55pm

This assigment builds on Assignment 3, requiring you to implement Session State Management capabilities to your site. You will gain hands-on experience with handling user sessions.

Here are the requirements.

  • Create new Session persistent data
  • Experiment with different session names
  • Learn to inspect cookies on the browser
  • Introduce a page called ‘protected.php’ that will show a short Logged in message with last login time
  • Log out and close session

Process: the following would be one common thread of interaction with your site.

  1. Present the form
  2. User logs in
  3. Assign Session a name, start and destroy it based on user actions
  4. Navigate to protected.php
  5. User logs out
  6. Clear all session information
  7. Navigate to Login form page

Recitation will review the W3C pages on PHP Session Variabes as preparation for you to write your session management code in this assignment.

You will submit a single tar file "lastname.tar" with the required files. Submission will be through Canvas. Please host it on your CS account and provide the URL to your page as a comment during the Canvas submission.

To do this assignment, please use a text editor and type all the necessary tags by hands. Please do not use any web development application to create your login page. Your work will be tested with Chrome on department machines.

Addendum (last updated 2/11/2016)

No updates at this time.