Hi
I have developed a login system for users of my website, whereby once they have regsitered a cookie is sent to their machine so they can enter member areas etc.
However, i have not been able to workout how to detect if the user has registered or not? i.e if they have not registered, redirect them to the sign-up page - if they have joined, let them continue....
I basically need a small bit of code to put at the top of every page i need to protect.
i used the below - it didn;t work...
<?php
if (!isset ($site_user) && ($site_pass)) {
header ("Location: http://www.XXmysiteXX.com/signup.php");
exit;
}
?>
Any help??
Thanks in advance
Jim