Hi friends,
when the session is out iam redirecting my pages to login page.
using this code
if(!isset($_SESSION['userid']))
{
header("Location:login.php");
}
But my problem is iam using iframes
so login form is coming in iframe.
But i want the total page should redirect to login page
can anyone please help me.....
redirection problem
Moderator: General Moderators
Re: redirection problem
I'd use javascript for that:
You get some answers on Google, search for:
javascript location.replace target
You get some answers on Google, search for:
javascript location.replace target
Re: redirection problem
where i have to call javascript function in onload event?
Re: redirection problem
function refreshJsLogin(sessionid)
{
if(sessionid == "")
parent.location.href="index.php";
}
i called this function in body onload event it is working fine
{
if(sessionid == "")
parent.location.href="index.php";
}
i called this function in body onload event it is working fine