Authenticating Your Users

  • Frank M. Kromann


Authenticating user identities is a common practice not only for security-related reasons, but also to offer customizable features based on user preferences and type. Typically, users are prompted for a username and password, the combination of which forms a unique identifying value for that user. In this chapter, you’ll learn how to prompt for and validate this information using a variety of methods, including a simple approach involving Apache’s htpasswd feature, and approaches involving comparing the provided username and password to values stored directly within the script, within a file, and within a database. In addition, you’ll learn how to recover lost passwords using a concept known as a one-time URL. In summary, the chapter concepts include:

Copyright information

© Frank M. Kromann 2018

Authors and Affiliations

  • Frank M. Kromann
    • 1
  1. 1.Aliso ViejoUSA

Personalised recommendations