Problem When Sesion Time Out in Iframe

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

Problem When Sesion Time Out in Iframe

Post by Pirontech »

Hi,
My client Want the functionality that:

After Login User Browsing The site After The Login From The Home Page. After Login user redirect to his Course Page which having the the Left Tab (Links to redirect from one Page to other) here i have the Iframe, when session time Out then A page comes in the Iframe Area which ask user to login again by filling the USeriD and Password,

Here my problem start when user Login again then page reload in the Same Iframe but i want whole Page Reload (i do not want to realod Header and Footer Again) please Help me Out : My Php code in the class.php file ::

I tried With PHP WIth Header Location:

header("location:main.php");
exit;

its worked but page load gain in the Iframe but i want to load the main.php again not in the reloaded iframe

itried with With JS :

$url = 'main.php';
echo "<script language=\"javascript\">
window.location.href=\"$url\";
</script>";
exit; // Stops executing page, just stops if JS is disabled


But i have not found any Solution...and its not worked

its worked but page load gain in the Iframe but i want to load the main.php again not in the reloaded iframe

Plz help
Post Reply