“(To Lisa) You got the brains and talent to go as far as you want and when you do, I’ll be right there to borrow money.”

—Bart Simpson

Chapter Objectives/Student Learning Outcomes

After completing this chapter, the student will be able to:

  • Define sessions and explain how they are used for authentication
  • Create a PHP program that authenticates user logon
  • Create a PHP program that registers users
  • Create a PHP program that will allow users to change their passwords
  • Create a PHP program that logs invalid login attempts
  • Create a PHP program that will use current password encryption techniques

Verification and Sessions

Get Learn PHP 7: Object-Oriented Modular Programming using HTML5, CSS3, JavaScript, XML, JSON, and MySQL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.