If you store your "login object" in a session, when the browser window is
closed the object will automatically be destroyed, thus calling the
destructor.
In response to the message you send directly to me, you would create a file
called Login.class.php and at the top of each page include the file using
require_once("Login.class.php");
Matt
""mail.pmpa"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>De: Matt Monaco [mailto:[EMAIL PROTECTED]
>Create an object with the functionality of your choosing, in the destructor
>perform your cleanup operations.
The problem is I don't know when a member closes the browser window.
If I knew that i would automatically logout that member.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php