Skip to main content

Create Login/Logout Functionality for Members and an Administrator

  • Chapter
  • First Online:
Practical PHP 7, MySQL 8, and MariaDB Website Databases
  • 2159 Accesses

Abstract

In Chapter 2, we created the first interactive pages using a database and a table. By now, you have probably realized that what we created was not very practical; however, you learned how to embed interactivity into a real-world page. A more practical application is to allow registered users to log in and log out of private pages. When users log in, they should be able to access extra features offered by the website. These could be a page of special offers for members, or it could be the ability to add a comment in a blog, access the minutes of meetings, or view the dates of special events for members only.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Adrian W. West and Steve Prettyman

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

West, A.W., Prettyman, S. (2018). Create Login/Logout Functionality for Members and an Administrator. In: Practical PHP 7, MySQL 8, and MariaDB Website Databases. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3843-1_3

Download citation

Publish with us

Policies and ethics