Just to test myself with php to see if i could do it properly, i made a membership system, so users can sign up, log in (and go to the members area) and log out.
On my homepage i had these links - Home | Join | Log in | Members Area
I would like to make it so, when the user is logged in, the log in link changes to log out.
Also with the members area, i couldn't think of the proper way to do i, so i just put my log in script there, so when a user logs in, if they go back to the home page and click members area - it makes them sign in again.
If you need to see my script to help me please tell me and i will post it on here.