Re: [phplib] destroy session From: Mikhail Avrekh (ami <email protected>)
Date: 08/21/00

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

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>