Re: help avoid multiple login

From: Date: Tue, 29 Nov 2005 01:16:59 +0000
Subject: Re: help avoid multiple login
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-226569@lists.php.net to get a copy of this message
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"" <mail.pmpa@sapo.pt> wrote in message news:000601c5f480$32976120$6f2e9a52@POSTO03... >De: Matt Monaco [mailto:mmonaco3@jhu.edu] >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.

« previous php.general (#226569) next »