have the following .php files.
1. login.php
2. index.php.
- main.php
- top.php
- list.php
- logout.php
and many other php generated by phpmaker
The main is a php page using 2 frames: The top frame is the top.php and the second frame(which is the actual page) is the list.php (Here all the interaction will take place, where all the .php will be dispayed.
index.php was set to redirected to the main.php after a succesfull login.
login.php dont use frames. After a succesful login then we redicted to the main.php - caused by index.php and then we can see two different frames.
until this point everything is ok. When we are in the main.php and press the logout button, the login.php is presented but not as a whole page "_top" but, within the second frame.
as the logout.php code is:
<?php
session_start();
@session_unset();
@session_destroy();
header("Location: index.php");
?>
how can i alter the header("Location: index.php"); to be somthing like :
<a target="_top" title="Go Home - Main Page" href="http://students.dolce-musica.com/main.php">
To actuall use _top, to present the new page as a whole page, on the top of the 2 frames... instead of ppresenting it to the second-main frame???
Ofcourse i need the session destroy, to be a succesfull logout
Thanks
Kind regards,
Christos Makedonas