Session handling in PHP
To use the demo do following
Type in your name and log in
See your profile with your name
Log out to destroy session
Tutorial link :