how can i get this to work ??

if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
WHERE userID=$this->userID");

> ok well i just noticed my sql statement is a bit flakey as its not a
> true idle time to get a true idle i'd have to keep a record of the time
> every request to the pages when logged in, this is checking when they
> lasted logged in so the user may still be logged in 300 seconds later
> , this isnt really idle especially when the users will be fulltext
> searching a table of 100K + records :|, any suggestions ?
>
>>> for me these few line are working well, user cannot login before
>>> max-idletime is reached.... (i check the list every time an action is
>>> taken
>>> on the board, if no user is online, i cant login forever and have to
>>> connect
>>> as another user first ;)
>>
>> And you call that a viable solution? That's ridiculous.
>>
>> ---John W. Holmes...
>>
>> Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
>>
>> PHP Architect - A monthly magazine for PHP Professionals. Get your
>> copy today. http://www.phparch.com/
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to