logout from frameset

logout from frameset

am 20.11.2006 13:58:54 von Gaga

Hi !
I have normal 3 frames framset loaded after successfull login. When i make
logout then this logout is applayed on just one frame ( the frame where i
have put the logout part ). How to make logout of the whole framset and how
to close whole frameset after user has decided to logout ?

Thank you

Re: logout from frameset

am 20.11.2006 14:21:16 von Shion

Gaga wrote:
> Hi !
> I have normal 3 frames framset loaded after successfull login. When i make
> logout then this logout is applayed on just one frame ( the frame where i
> have put the logout part ). How to make logout of the whole framset and how
> to close whole frameset after user has decided to logout ?

use target option in the anchor-tag in the url to the logout, or use a series
of javascripts to clear the other frames.


//Aho

Re: logout from frameset

am 20.11.2006 16:47:29 von Gaga

I understand you partly. This will logout just one frame ...


Please give me some example.
Gaga

"J.O. Aho" wrote in message
news:4sdoecFuibegU3@mid.individual.net...
> Gaga wrote:
> > Hi !
> > I have normal 3 frames framset loaded after successfull login. When i
make
> > logout then this logout is applayed on just one frame ( the frame where
i
> > have put the logout part ). How to make logout of the whole framset and
how
> > to close whole frameset after user has decided to logout ?
>
> use target option in the anchor-tag in the url to the logout, or use a
series
> of javascripts to clear the other frames.
>
>
> //Aho

Re: logout from frameset

am 20.11.2006 18:53:39 von Shion

Gaga wrote:
> I understand you partly. This will logout just one frame ...
>
>
> Please give me some example.




Please don't top post, that is considered as a bit of bad netiquette.


//Aho

Re: logout from frameset

am 20.11.2006 19:28:00 von Martin Mouritzen

On Mon, 20 Nov 2006 16:47:29 +0100, "Gaga" wrote:

>I understand you partly. This will logout just one frame ...
>

Try this:



--
best regards,
Martin Mouritzen.
http://www.siteloom.dk

Re: logout from frameset

am 21.11.2006 19:01:10 von Gaga

I have send this post as replay to the last poster ( normal replay and not
to group ), but i dont see it listed under posts...
@J.O.Aho
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" ?

I still have problems :
------------------------------------------------
Logout link:
echo " ";
?>

------------------------------------------------------
This the logout part:
include "include/session.php";
session_unset();
session_destroy();
?>


Logged out.
href=login.php>Login
";
?>


---------------------------------------
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.
-----------------------------------------

Re: logout from frameset

am 21.11.2006 19:44:19 von Shion

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 " ";
> ?>

Don't "quote" the _top:




> 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 ---

--- eof ---

--- page2.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 ---
Logged Out

Logged out.



--- eof ---


//Aho

Re: logout from frameset

am 22.11.2006 14:20:38 von Gaga

"J.O. Aho" 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 " ";
> > ?>
>
> Don't "quote" the _top:
>
>
>
>
> > 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 ---
>
> --- eof ---
>
> --- page2.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 ---
> Logged Out
>

Logged out.

>

>
> --- eof ---
>
>

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