A Simple Login Script
Tracking users on your website has many advantages. It allows you to present dynamic content, tailored to their needs, location, current trends and identity. It also allows you to open or limit access to portions of your website based upon established user credentials or other criteria. PHP sessions allow for smooth navigation and content delivery.
In this tutorial we will focus on setting up a session and using the session to act as a container for a user name before allowing access to specific content or pages on a website. In this lesson we will store our allowable user names within the webpage. In later tutorials we will store our user names and encrypted passwords in a database.
View the complete tutorial here.