login and registration



Hey guys,
I am making a social networking site and I have front end coded the whole site with html/css. I just began learning php and i wanted to start with the login and registration system. I have been able to get my $_POST[''] data sent into my mysql database but i do not know how to keep the session last for the user as well as the log in system. I was hoping you guys could give me a direction as to how those things would be done
For Login and Register I found one code It was very Helpful for make Registration System.
It was very useful to you. Check here I am every time using for register and login purpose.
Thank You