$_SESSION['k_username'] = $row['user']; echo "Has sido logueado correctamente '.$_SESSION['k_username'].'"; echo '<a href="index.php">Index</a></p>';