|
Posted by Berimor on 11/08/01 11:31
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.
--
---
Exact Meta Search | Major Search Engine
http://exactsearcher.com
[Back to original message]
|