a page ‘Login.php’ that asks the user for a username and password. The
validation simply needs to be that the username is not blank and the password
contains the word ‘secret’. If the username or password is incorrect, the user
will be re-prompted for their id and password (use a non-sticky form). If the
values are acceptable/correct, the page will start a session and direct the
user to the ‘Welcome’ page.
a page ‘Welcome.php’ that will be used to greet returning users. The page will
greet the user by their username and display the logo of their favorite
football team if they have selected one (see step 5).
the user attempts to access the ‘Welcome’ page without having a valid session,
they will be redirected to the login page.
the user attempts to access the ‘Login’ page while there is an active session,
they will be redirected to the ‘Welcome’ page.
a page that displays a listing of football teams and their logos. A valid user
will be allowed to select/reselect one of these as their favorite team. Save
their choice as a cookie. If a user attempts to access this page without being
logged in, they will be redirected to the login page.
‘Welcome’ page will provide a link to the page allowing the user to select
their favorite football team.
‘Welcome’ page will provide a link allowing the user to logout. When the user
is ready to log out, end the session. Once the user has been logged out, they
will be redirected to the ‘Login’ page.