Date: 08/22/00
- Next message: Torrey Hoffman: "RE: [phplib] sql_query->form customization?"
- Previous message: s fds: "[phplib] Re: [PHP-INST] Apache not starting with PHP4 ..."
- In reply to: Mikhail Avrekh: "Re: [phplib] destroy session"
- Next in thread: Mikhail Avrekh: "Re: [phplib] destroy session"
- Reply: Mikhail Avrekh: "Re: [phplib] destroy session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks Mikhail,
i did what you advised, but i got this error:
Warning: Oops, php3_SetCookie called after header has been sent in
session.inc on line 160
My code looks like this:
<?php
page_open(
array("sess" => "Session",
"auth" => "Auth",
"perm" => "Perm"));
?>
<html>
<body bgcolor="#ffffff">
<h1>Logout</h1>
</body>
</html>
<?php
$auth->logout();
$sess->delete();
page_close();
?>
any thoughts on the matter?
Mikhail Avrekh wrote:
>
> You have to say
>
> $sess->delete();
>
> somewhere in your file, provided that there is a
> page_open(array("sess"=>"Your_Session")) statement somewhere at the
> beginning. This will erase the session info in the database and unset the
> Session_Id cookie. However, all persistent variables will still be
> available to that file, so you can re-register the ones you want to keep
> with your new session.
>
> M.
>
> On Mon, 21 Aug 2000, darcy w. christ wrote:
>
> > i'm looking for a way to clear or destroy the session upon logging out.
> > i think i might not want to destroy the actual session, but i certainly
> > want to clear some of values. Does this mean i need to clear each of
> > the values? How do people generally deal with this situation?
> >
> > The place in the code in which i want this to happen is in the standard
> > logout.php3 which has:
> >
> > $auth->logout();
> > page_close();
> >
> > The problem is that i cannot do it before or after the page_close();
> >
> > Could someone give me some advice for this situation.
> >
> > --
> > ~darcy w. christ
> > Elegant Communications Inc.
> > 416.362.9772 x222 | 416.362.8324 fax
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> > For additional commands, e-mail: phplib-help <email protected>
> >
> >
-- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Torrey Hoffman: "RE: [phplib] sql_query->form customization?"
- Previous message: s fds: "[phplib] Re: [PHP-INST] Apache not starting with PHP4 ..."
- In reply to: Mikhail Avrekh: "Re: [phplib] destroy session"
- Next in thread: Mikhail Avrekh: "Re: [phplib] destroy session"
- Reply: Mikhail Avrekh: "Re: [phplib] destroy session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

