© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. SimonAn Introduction to PHP https://doi.org/10.1007/979-8-8688-0177-8_10

10. Sessions and Logging In

Mark Simon1  
(1)
Ivanhoe VIC, VIC, Australia
 

You’ll have noticed by now that the imagelist.php and editimage.php pages aren’t directly accessible from the site menu. That’s because we’re not really inviting the general public to join in and tamper with the contents of the site.

Of course, it’s not enough to hide the links. What we need to do is filter who’s allowed to access them in the first place.

In this chapter, we’re going to look at restricting activity to acceptable users. That means limiting access to some areas to someone who’s logged in and has permission ...

Get An Introduction to PHP : Learn PHP 8 to Create Dynamic Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.