|
Posted by J.O. Aho on 11/21/06 18:44
Gaga wrote:
> Please don't top post, that is considered as a bit of bad netiquette.
> ** I have read something about this... should i give replay as normal
> "replay" or as "replay to group" ?
Top-posting is when you reply to a previous post and write everything in the
top of the new post and leave the old one in the bottom. A replay is easier to
follow if you type your reply under the text that you are replying at and cut
away part of the original post that you don't reply to.
> I still have problems :
> ------------------------------------------------
> Logout link:
> <?
> echo "<a href="logout.php" name="out" target="_top" >Out</a> ";
> ?>
Don't "quote" the _top:
<?php echo "<a href=\"logout.php\" name=\"out\" target=_top>Out</a>" ?>
> This is the logout page and this page will be executed when you click on the
> logout link.
> Logout is executed but just in one frame.
Sessions can be kept alive in a framed system if you don't see to that the
whole frame system is destroyed at the same time as the session is killed and
even better if you can have a page hastily in between where there is no
session at all before the logout message page.
Page with logout link, target=_top -> page that kills the session and a
header() that forwards to "you have logged out" -> The "you have logged out"
page with a link to the main page/login page.
This should give you the best result.
--- page1.php ---
<?php echo "<a href=\"logout.php\" name=\"out\" target=_top>Out</a>" ?>
--- eof ---
--- page2.php ---
<?php
session_unset();
session_destroy();
/* really nicer if you get back to the mainpage index.html */
header("Location: http://www.example.com/page3.html");
?>
--- eof ---
--- page3.html ---
<html><head><title>Logged Out</title></head><body>
<center><font face='Verdana' size='2' >Logged out. <br>
<a href=login.php>Login</a></font></center>
</body></html>
--- eof ---
//Aho
Navigation:
[Reply to this message]
|