You are here: Re: logout from frameset « All PHP « IT news, forums, messages
Re: logout from frameset

Posted by Gaga on 11/22/06 13:20

"J.O. Aho" <user@example.net> wrote in message
news:4sgvo4Fv14aiU1@mid.individual.net...
> 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 ---
>
>

----------------------------------------------------------------------------
-------
Thank you guys for your replay and thank you Jo.aho for your explanation !
> //Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация