How can I redirect a page to another ? For example, if the user is registered he gets to see the members section and if he is not, he is redirected to a 'Register Now' page when he clicks on a members area link.
Also how will it work if he types in the address in the address bar ? For example, he types www.somesite.com/members_area.php. So when this page loads, it checks if the user is logged in. If he is not, it redirects him to a 'Guest' page or something.
The logging in checking can be done by setting a cookie, if I am not mistaken. How can I redirect to a different page or different site ?
I am a newbie at Php, so sorry if this is too trivial.