|
-
Mar 28th, 2004, 07:02 PM
#1
Thread Starter
Frenzied Member
getting the number of users on site
I want to put a small panel about site states in the admin panel for the site I'm working on. One of the things I want to have in the site state panel info box is number of users currently browsing site. Is there a better way to do this then using the session. I know that doing ++ and -- on session_start and session_end will do this for me, but last time I checked the session doesn't end for around 20 minutes after the user has left the site. I can live with that but if there is a better way I'd rather be precise.
Anybody know, of anything better?
Thanks.
Magiaus
If I helped give me some points.
-
Mar 29th, 2004, 06:09 PM
#2
I wonder how many charact
No.
The whole architecture is disconnected. IF someone opens your website main page, and then goes to the local convenience store to buy some Dove bars, and then comes back and continues browsing... (all under 20 minutes).. is he really currently using your site?
Or if he/she leaves your site for one minute, then comes back to it.... is it still the same session? It is, since the IP/MAC combo will give them the same sessionid back(if the session hasn't timed out). But they weren't currently using it for that one minute.
The best you can get is an approximation dependent on your session timeout.
-
Mar 30th, 2004, 10:06 AM
#3
Thread Starter
Frenzied Member
Okay that's what I thought. To bad there is not a last request field or something on the session.
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|