Time Spent on AO
Results 1 to 6 of 6

Thread: Time Spent on AO

  1. #1
    Member rnapro's Avatar
    Join Date
    Aug 2001
    Posts
    66

    Time Spent on AO

    I think it might be neat to see how much time each of us have spent on the site. This could be done privatly (see your own) or publicly (see everybody).

    I read a poll asking that question and think it could be an interesting tool.
    Share on Google+

  2. #2
    Old-Fogey:Addicts founder Terr's Avatar
    Join Date
    Aug 2001
    Location
    Seattle, WA
    Posts
    2,007
    The problem is how to determine that a person isn't just leaving AO as his homepage... determining how long you actually spend with the page on the screen is a tricky matter, and I think it wouldn't work too well, personally. As for seeing your date of registration, that is in your public profile.
    [HvC]Terr: L33T Technical Proficiency
    Share on Google+

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Posts
    752
    I dont think that would be a very necessay thing. If people saw how much time I spend on this site, they would worry. I don't think I'm the only one either. Look at my number of posts. Now look at my profile for my registration date. Get the idea?

    Also, how do we know that the person spent this time actively on the site, instead of leaving it running in the background? You can't, unless you do it by tracking all the traffic between the person's PC and the server. Even then, how do you turn that into an automated graph for how much time the person has spent on the site? It's easy for a person to look through the access logs for their server, and determine how long the person has been actively on the site. Turning that into an automated user-friendly graph would be extrememly tricky. Besides, if you want to see how active a person is on this site, look at their profile. It will tell you how long they have been here, how many posts they have, and how many times they post on an average day, among other things.
    Share on Google+

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Posts
    101

    Well...

    Ok, in my opinion, there really isn't any need for this feature but if you wanted to...

    I'm not sure how to do this in PHP but in asp I would do the following:

    In the global.asa file -

    1. First, set the session timeout variable to something reasonable, like 10 minutes or so.

    2.
    sub onsession_start
    add a session variable that stores the time of the session starting (probably store the minutes/hours and day seperately)
    end sub

    3.
    sub onsession_end
    take a look at that session variable, take the difference in the minutes, hours and check the date (in case they were there over midnight) and add it to your profile. Keep track of the minutes, hours and days 'online' (hours += minutes/60, minutes %= 60, days += hours/24, hours %= 24, etc).
    end sub

    That would definately work with ASP but then again, I don't know PHP at all.

    PS Can't quite remember the exact names of the sub routines but that should be fairly close.
    - Stronzo

    \"Vini, Vici, Vidi\"
    I came, I saw, I conquered.
    - Julius Caesar
    Share on Google+

  5. #5
    Token drunken Irish guy
    Join Date
    Sep 2001
    Posts
    2,813
    I dont feel there is a need for this feature, its pretty obvious who spends a lot of time here, people like myself and those who dont. Not really a helpful feature but saying that I would have no problems if it was introduced.
    Share on Google+

  6. #6
    Banned
    Join Date
    Jul 2001
    Posts
    1,100
    Greetings All:

    Well, this would be a VERY difficult feature to come up with, and a VERY easy feature to abuse. Soo, I don't see it come into being. I appreciate your suggestion though!!
    Share on Google+

Posting Permissions

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