Problem When Sesion Time Out in Iframe

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Locked
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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Problem When Sesion Time Out in Iframe

Post by pickle »

Wrong forum, and double post.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.
Locked.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Locked