You are here: Re: [PHP] help avoid multiple login « PHP « IT news, forums, messages
Re: [PHP] help avoid multiple login

Posted by "Matt Monaco" on 11/29/05 03:16

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация