okay let say the code u posted is login.php
and your frames page may look like
framepage.html
<frameset cols="*,*">
<frame name="leftFrame" src="login.php">
<frame name="mainFrame" src="view.php">
</frameset>
Altering your login.php
<head>
<script language="Javascript">
function redmain()
{
parent.mainFrame.location.href = "view.php";
}
</script>
</head>
...
..
.
<a href="<?php echo $phpbb_root_path; ?>login.php?logout=true&redirect=../Forum/mods/phpbb_fetch_all/examples/login.php" onClick='redmain();'>Logout</a>
Wat this code does is...
Loads Login.php with logout = true in left frame and refreshes mainFrame with default page in it(here it is view.php)
or you can do something like this:
Altering your login.php
<head>
<script language="Javascript">
function redmain()
{
parent.mainFrame.location.href = "view.php";
}
</script>
</head>
[B]<body onLoad="redmain();">[/B]
...
..
.
<a href="<?php echo $phpbb_root_path; ?>login.php?logout=true&redirect=../Forum/mods/phpbb_fetch_all/examples/login.php">Logout</a>
This refreshes the page in mainFrame everytime login.php is loaded in leftFrame so does the same job and also applies for your additional case when user logs in successfuly
Is this wat u asking for?