|
Posted by Bob Stearns on 11/08/58 11:31
Berimor wrote:
> On Tue, 08 Nov 2005 09:34:02 +0200, Bob Stearns
> <rstearns1241@charter.net> wrote:
>
>> Right now, I am attempting to see how many users are "signed on" to
>> my system. Since this is, at best, rather tenuous in a WEB
>> environment, I thought to read the active session variables and see
>> how many sessions there were.
>
>
> I'd propose to write timestamp to DB each time the registered user
> visit the site's pages. Then you define the default timeout and make
> querry - something like that :
> SELECT COUNT(username) FROM table_name WHERE last_logged >current_time
> - timeout
> think this is more simple.
>
>
Thanks, I'll work on that.
[Back to original message]
|