Now that we have a database class and a user class, I want us to move further…along toward the goal of being able to log in to an Admin area by looking at the session class.…Now we took a look at sessions before in the PHP with MySQL Essential Training.…I want us to now look at it with an eye towards making it object oriented. …So to start it with I'm just going to go to TextMate and open up a new window and…I'll save this in the includes folder and we'll just call it session.php and…we'll start with our php tags and it's going to be class Session.…

That's going to be our session class that we're going create.…Now if you remember back to what we learned in the Essential Training…the session is going to be maintained on the server as a file. And what we're going…to do is actually get the cookie for the session automatically sent to us by the…browser and we'll be able to look up what file is there and then in that file…we can store things and that way we can actually store that user state.…