-
Book Overview & Buying
-
Table Of Contents
PHP and MongoDB Web Development Beginner's Guide
In the previous chapter, we learned how to use PHP to store and retrieve data to and from a MongoDB database and built a very basic web application while we were at it. This time we will use that knowledge to build something more practical. We are going to build a session manager in PHP, a module that will handle the HTTP session of a visitor in a website, using MongoDB for storing the session data. Why a session manager? Because it is one of those components that you are going to need when building a user facing web application; implementing basic but important functionalities such as signing in a user (authentication), tracking his/her activities, authorizing his/her actions, and logging him/her out. We will use object-oriented programming principles for building the module, so that it can be used in any web application with little or no change. We will also build a separate module for user authentication, which will be used by the session manager...
Change the font size
Change margin width
Change background colour