if(!isset($_SESSION)) {session_start();} if($_SESSION['username'] != "") { echo "Eingeloggt als " . $_SESSION['username'] . ""; }