Hi Guys,
Is it possible to build a session the following way:
<?
session_start();
// check session variable
if (session_is_registered("valid_user"))
{
<body>
</body>
}
else
{
echo "You are not logged in.</p>";
echo "Only logged in members may see this page.</p>";
}
echo "<a href=\"members_only.php\">Back to main page</a>";
?>
Is this at all possible?
Cheers,
Sam