SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can this be done in php?

    Is it possible to count the number and display the number of people who have a session on your site?
    Have a good day.

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are they loggin on through a logon script, if so when they log in you could add 1 to a variable that holds the data for the ammount of ppl on the site or add one to a session value would prob be better
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  3. #3
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want to count the number of a specific session that are occuring on the server...
    Have a good day.

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how does the session get started??
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  5. #5
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well geez by setting it..?
    Have a good day.

  6. #6
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    What he means is, are the sessions being started by a user logging on or are they set some other way like bing set when the page loads?

    If they are logging on use webnoobs idea, if they are not logging on then it is much more difficult to count as sessions can occasionaly be transfered from site to site if the user has not looged out.
    By which I mean if a user has logged into hotmail to read their emails, that session can still be active when the user comes to your site.

    Spike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  7. #7
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you are using database then you can put a datetime field. and whenever user goes to a page update it. now, count all the users that have surfed a page within last 30 minutes or somehting like. i hope i am being realistic. never done this though.

  8. #8
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    jaswinder thats exactly what I want to do, I want to count the active users that are not logged into my site who have been active in the last 15 minutes.
    Have a good day.

  9. #9
    SitePoint Evangelist
    Join Date
    Sep 2004
    Location
    Oregon
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My friend did something like this, I think i can find his script - It would be old school, but I will see if I can find it. Somebody will obviously correct me when i find it though lmao

  10. #10
    SitePoint Evangelist
    Join Date
    Sep 2004
    Location
    Oregon
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok nevermind, I just had a bad memory, it just pulled the amount of rows in users =P


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •