- header: documentation ( source)
<?php
header('Content-Type: text/html');
if (isset($_SESSION['isLoggedIn']) && $_SESSION['isLoggedIn']===TRUE )
{
echo '<a href="html/login.php">Log in</a>';
}
else
{
echo '<a href="html/logout.php">Log out</a>';
}
?>