i have a file and a function, the file named : 'try.php' with script like this :
<?php
function is_logged_in(){
if(empty($_SESSION['authid'])){
header("location: ./try.php?act=login");
}
}
is_logged_in();
if(isset($_GET['act'])){
// login form here
}
I have some error "The page isn't redirecting properly". so How can i redirect my code to the same file?