-Mensagem original-
De: Jochem Maas
(...)
the normal way of doing session 'closing' is by way of 'garbage collection'
- every now and then a script/process/function is run that 'closes' any
sessions which are (according to your criteria) inactive. php has stuff
built it that will do this fo
-Mensagem original-
De: Jochem Maas
(...)
the normal way of doing session 'closing' is by way of 'garbage collection'
- every now and then a script/process/function is run that 'closes' any
sessions which are (according to your criteria) inactive. php has stuff
built it that will do this fo
Richard Heyes wrote:
Jochem Maas wrote:
it might be possible to use some browser plugin to hit the server
if it notices that it's window is being closed... although I have a
sneaking
suspicion that Flash, for instance, has the same problem as javascript
with
not being able to differentiate be
Jochem Maas wrote:
it might be possible to use some browser plugin to hit the server
if it notices that it's window is being closed... although I have a
sneaking
suspicion that Flash, for instance, has the same problem as javascript with
not being able to differentiate between the page unloadi
Matt Monaco wrote:
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.
exactly what is it that triggers the object destruction??? since when is it
normal practice for a browser to do a request
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 fi
>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
-Mensagem original-
De: Matt Monaco [mailto:[EMAIL PROTECTED]
Enviada: terça-feira, 29 de Novembro de 2005 0:02
Para: php-general@lists.php.net
Assunto: [PHP] help avoid multiple login
Create an object with the functionality of your choosing, in the destructor
perform your cleanup
Greetings
I'm having some trouble on a members online script.
I use a php script to track member login to avoid multiple logins on
different ips etc.
When a logged member closes the browser window I can't delete the table
entry because I will not have access to some sort of "Session_OnEnd" action
9 matches
Mail list logo