Código PHP:
<table width="100%" height="225" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="37" scope="col"> </th>
</tr>
<tr>
<th scope="row">
<?php
if(isset($_COOKIE['loggedin'])) {
echo '<a href="perfil.php">Mi Perfil</a>';
} else {
echo '<a href="registrarse.php">Registrarse</a>';
}
if(isset($_COOKIE['loggedin'])) {
echo '<a href="cerrar-sesion.php">Cerrar Sesion</a>';
} else {
echo '<a href="iniciar.php">Iniciar Sesion</a>';
}
?>
</th>
</tr>
</table>