Monday, 9 November 2015

PHP: User login, resticted pages, redirects, bootstrap with MySQL using sessions

PHP: User login, resticted pages, redirects, bootstrap with MySQL using cookies

Login.php/login_page.inc.php - Main login page
CRMmain.php - Redirects here after successfuly login - Redirect to login.php if no cookies
mysqliadl.php - Database connection
login_functions.inc.php - Checks user/pass with database
logout.php - Destroys cookies and redirects to login.php