You just need to check validation on your index page
Code:-
If(empty($_SESSION[“user”]))
{
header(‘location:login.php’);
}
else
{
header(‘location:index.php’);
}
You just need to check validation on your index page
Code:-
If(empty($_SESSION[“user”]))
{
header(‘location:login.php’);
}
else
{
header(‘location:index.php’);
}
Post a Comment
If you have any doubts, Please let me know
Thanks!