Skip to content

cassell13/login-session

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP session

Cassell Robinson

Description

Write PHP code to complete the log in and log out example from the starter code using PHP session variables.

Lab Step 1

  • clone your repository in the public_html folder on the gwupyterhub server
  • create and populate the table in your own database on gwupyterhub using the script provided
  • Check that the table was populated

Lab Step 2

  • modify the login/connectvars.php file with your mySQL credentials
  • run the following command to disable track changes to that file
git update-index --assume-unchanged connectvars.php

Lab Step 3

  • modify the login/login.php file to check the credentials and establish a connection.
  • modify the login/logout.php file to end the session.

About

PHP session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.9%
  • CSS 3.8%
  • Hack 1.3%