-
"frame" logout problem
Hi,
control_panel.php file has 3 frames .
left_top.php
left_bottom.php
center.php
control_panel.php
PHP Code:
<frameset rows="*" framespacing="0" frameborder="NO" border="1" >
<frameset cols="199,*" framespacing="0" frameborder="NO" border="1">
<frameset rows="80,*" frameborder="yes" border="1" framespacing="0">
<frame src="left_top.php" name="topFrame" scrolling="no" noresize >
<frame src="left_bottom.php" name="leftFrame" scrolling="yes" noresize>
</frameset>
<frame src="center.php" name="right">
</frameset>
</frameset>
<noframes><body>
now left_top.php has the logout button . When I click it
it only redirect to index.php ...but other (two) frame (left_bottom.php,center.php) remain same.
<?
session_start();
session_destroy();
header("Location:../mysite/index.php");
exit(0);
?>
How do I shift the user from all frame(3 frame) to index.php ?
Hope it is clear :)
-
Have the target of the logout link be the parent/top window, so that it changes the address of the entire window, not just the individual frame.
-
On your Log Out link, add the target window as sample:
Code:
<a href="logout.php" title="Log out" target="_parent">Log Out</a>
hope it works.
-
"Dan Grossman"& "sandal" thanks a lot :: it works perfectly .
"sandal" thanks again for the code :)