Results 1 to 7 of 7

Thread: who's there ?

  1. #1

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    who's there ?

    how does the script work for this site (or any) for seeing who is currently logged in ? i'm sat thinking about it for quite some time now but cant figure it out. any clues ?

  2. #2
    Addicted Member nota141's Avatar
    Join Date
    Feb 2000
    Location
    The place down there under everyone else.
    Posts
    224
    well there be some database for the users and the messages so i would think that when you login you some how set a marker in the database. which will tell you who is online.
    On Error wake up and try again ;-)
    ___________________________
    ICQ # 65392645
    email - [email protected]

    Visual Studio 6 ent with SP5 Running on XP with an AMD 1.2 ThunderBird with 512 MB RAM And a 120GB primary HDD (very sweet)

  3. #3
    scoutt
    Guest
    correct, it also has session varialbe that work with that marker in the database.

  4. #4

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    Originally posted by scoutt
    correct, it also has session varialbe that work with that marker in the database.
    u seem to know what your talking about scoutt, could u explain a bit more maybe ?

  5. #5
    scoutt
    Guest
    I'll try

    lets say you have a table in the database that is labeled "online" so when a user logs in a 1 will be put in the "online" table. so everytime someone loads the index page to what ever page you want it to show, it looks at that online table and finds all the "1" and then say user scoutt has a one so we check for a session variable and then say yup he is online. if the session variable is not there, then we say update the online table and put a 0 in there. and delete the session that is loaded in the table.

    make sense?

  6. #6

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    yeh, 100% sense; but the part i cant figure is how it knows that the person has left, does it have a timer or something so that if a user hasnt updated the "online table" then it changes the '1' to a '0' ??

  7. #7
    scoutt
    Guest
    well I'm not totally sure on that. I would have to research it to be 100% sure.

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