<button onclick="window.location.href = 'auth/login.php';" id="btn_login">Вход</button>
if(isset($_SESSION['logged_user']))
{
echo '<script type="text/javascript"> document.getElementById("btn_login").innerHTML = "Выход" </script>';
//изменить href на auth/logout.php
}