PHP: Managing Persistent Sessions
Offered By: LinkedIn Learning
Course Description
Overview
Learn how to store persistent PHP session data in a SQL server and create an auto-login system that recognizes returning users.
Syllabus
Introduction
- Welcome
- What you should know before watching this course
- Using the exercise files
- Sessions in Google Chrome
- How PHP sessions work
- Configuring session
- Changing session defaults
- Inspecting how session data is stored
- Implementing persistent sessions
- Creating a database and user account in MySQL
- Defining tables to store session data
- Connecting to the database
- Implementing the PHP SessionHandlerInterface
- Opening a session and reading stored data
- Writing session data
- Closing the session and garbage collection
- Destroying the session
- Setting the session handler
- How the autologin system works
- Using a trait to define common properties
- Extending the MysqlSessionHandler class
- Creating a persistent login
- Checking a returning visitor's credentials
- Logging out
- Generating a unique key when registering users
- Using a PSR-4 class autoloader
- Authenticating the user
- Revalidating credentials for sensitive areas
- Logging out selectively
- Final thoughts
Taught by
David Powers
Related Courses
Identifying Security VulnerabilitiesUniversity of California, Davis via Coursera Back-end Application Development with Node.js and Express
IBM via edX JSP, Servlet, JSLT + Hibernate: A complete guide
Udemy Create a Members Only Blog using PHP, MySQL, & AJAX
Udemy Desenvolvimento Seguro de Software
Udemy