When user is logged in have to show logout otherwise it will show log in bar.... I am trying the bellow code :
<?php
if(session_start())
{
echo "<a href='home.php'>Logout</a>";
}
else echo " <a href='index1.php'>Login/Register</a>";
?>
// But this is not working. Kindly help