Implementing Login/Register for a website
<p>I am doing a php website.I want users to register or login to view my photos page.
I have created login.php file,registerform.php file,register.php file
I have created database in phpadmin.New user can register and existing user can login.I have tested these files by placing in on a server.</p>

<p>so now my question is how should I implement this for my website.
how should I redirect from login page to photos page.And how should I know whether the user is logged in or logged out.On top of the page it should show as logged in or logged out.
How should I implement this code.
Please explain.</p>
