When the user logging into this page, http://localhost/snw/users/login.php and when the users are not properly navigated from the default page means, it will send back the user to the default page.
I used this coding. But even when the user logins from the default page also, it is sending back to the default page.
Code:if (!isset($txtusrname) || !isset($txtusrpwd)){
header("Location: http://localhost/snw/default.php");
}

