Results 1 to 3 of 3

Thread: getting the number of users on site

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    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.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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.

  3. #3

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    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
  •  



Click Here to Expand Forum to Full Width