if ($_SESSION["LoggedIn"]=="True") { $url = $_SERVER['SERVER_NAME']; echo $url; $path = $_SERVER['PHP_SELF']; echo $path; header("Location: https://texite.agnitek.com$path"); }