Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

Re: [PHP-DB] Desperate Help needed From: JJeffman (jjeffmanweb <email protected>)
Date: 01/14/01

You probably has configured your chat client page to make a timely refresh,
so the user can get new messages every time the page is refreshed.

I don't know if you allow the user to set up the refresh interval, any way
you can have a logged users table with their login time and last refresh
time. If current time is (for security) n times the refresh interval ( say
twice ) you may log them out. Be careful with users connection speed !

You have all the control of your database so you know if the user didn't
refresh the chat page in the last n refresh period. Messy ?

HTH.

Jayme.

http://www.conex.com.br/jjeffman

-----Mensagem Original-----
De: sarahana <sarahana <email protected>>
Para: <php-db <email protected>>
Enviada em: domingo, 14 de janeiro de 2001 14:04
Assunto: [PHP-DB] Desperate Help needed

Hi,
I made a database chatroom that seemed to be working perfectly fine - now,
it seems, if more than two people log in, the 1st person of the three
automatically gets logged out - its because i tried to make an automatic log
off for those who cross the window....

How do you detect if a person has closed the window (hence killing the
cookie) without logging off (so the database still has him listed, and
therefore is shown to be online)?

Here's the scenario:
1. one table lists the chatters' names
2. second table has 25 rows for each messages, they keep getting replaced as
the new messages come in

the problem: the chatters table lists those users who logged out ages ago...

thanks.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>