if (isset($_SESSION['k_username'])) { echo 'Hola, '; echo '<b>'.$_SESSION['k_username']. '</b>.'; echo '<a href="salir.php">salir</a>'; }