Re: help avoid multiple login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx> wrote in message 
news:000601c5f480$32976120$6f2e9a52@xxxxxxxxxx
>De: Matt Monaco [mailto:mmonaco3@xxxxxxx]
>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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux