I've been tied up with stuff lately, but I finally have a bit of a breather, so I'm ready to tackle this thing once and for all.I just want to get some feedback on what I plan on doing:
On my site, UserID (an integer) is a session variable.I'll create a structure that has the following three
yes but you can also run the update to knock out past connections when you update the current time, that is what I do.
-Original Message-
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 8:23 AM
To: CF-Talk
Subject: Re: Count Online Users Conundrum
I've been
Excellent.So there are two instructions on the structure update:
1) update my time
2) kill any connections older than 15 minutes
I'd still need to run a cleanup script every fifteen minutes, just to clean up any last connections, right?Otherwise, there will always be 1 person logged on, I'd
I run through my login script whenever someone logs on, I do not schedule it myself. Seems to work just fine.
-Original Message-
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 9:44 AM
To: CF-Talk
Subject: Re: Count Online Users Conundrum
Excellent.So
Thanks.I ran your script and sure enough, right now, it
says there are 99 users when it probably should be something
like 20.I'm not sure if I'm understanding you completely --
I'm thinking that I need to add to the following snippet that
already exists:
What are you actually trying to
What are you actually trying to do?I'm assuming you're attempting to
see who's currently using the system, and basically discounting anyone
who's not been active in the last 15 minutes?
If this is the case let me know and I'll knock a little code out for
you!Can't do it today, stupid firewall
Hi Ryan,
Here are my results:
4
12
14
10
11
15
8
5
3
8
10
12
10
7
4
13
14
14
14
13
15
7
6
3
12
0
6
11
5
6
11
4
4
12
6
11
4
4
11
6
14
13
15
10
9
9
3
15
9
6
2
12
9
10
13
8
11
5
3
13
3
3
3
2
2
4
2
2
5
2
2
12
3
2
4
9
2
15
4
7
2
9
6
10
1
5
14
1
1
13
8
11
14
14
1
1
15
6
9
4
8
5
7
1
1
1
1
6
1
12
0
0
0
Ray, is there any way I could streamline the locks?This is in the application.cfm page, so it's being hit quite often, and I'd like it to be as efficient as possible.Thanks!
- Sung
Not that it helps much, but that is some pretty awful code. The locks
are too much and the code generating cfid
Sung,
What happens is that at the end of the day (I run an intranet where
there
are about 200 peak users), around midnight, it still shows 80 or so
users
online!What do you think could be causing this?
Does the code you run to report on the user sessions run the code you
posted first?By this
Hi Tim,
Thanks so much for the breakdown.I got the code from easycfm.com and didn't think to really analyze it.I'll make the changes you suggested and let you know if I run into anything.Thanks again!
- Sung
Sung,
What happens is that at the end of the day (I run an intranet where
there
are
One thing:
What you'll need to do is add *two* timestamps to each user -- one for
when they first accessed the system, and one when they last requested
a
page.Your 15 minute check should then use the difference between
these values to determine whether the user has been inactive for 15
My apologies -- this will give you their total session time.To work
out if they've been inactive for more than 15 minutes you'll have to do
a time check comparing the last active timestamp and the current time
using now().
Hi Tim,
Thanks.I ran your script and sure enough, right now, it says
I got this little snippet from easycfm.com to keep track of online users, but lately, it hasn't been working quite right.What happens is that at the end of the day (I run an intranet where there are about 200 peak users), around midnight, it still shows 80 or so users online!What do you think
, KS 66211
(913) 754-4272
_
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:18 PM
To: CF-Talk
Subject: Count Online Users Conundrum
I got this little snippet from easycfm.com to keep track of online
users, but lately, it hasn't been working quite right.What happens
: Tuesday, August 17, 2004 3:18 PM
To: CF-Talk
Subject: Count Online Users Conundrum
I got this little snippet from easycfm.com to keep track of online
users, but lately, it hasn't been working quite right.What happens is
that at the end of the day (I run an intranet where there are about 200
Overland Park, KS 66211
(913) 754-4272
_
From: Sung Woo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:18 PM
To: CF-Talk
Subject: Count Online Users Conundrum
I got this little snippet from easycfm.com to keep track of online
users, but lately, it hasn't been working quite right.What
16 matches
Mail list logo