ASp.net VB - Building a who's online feature

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASp.net VB - Building a who's online feature

    Hi

    I have been asked about implementing a "Who's online" feature on a clients
    website but am unsure of the best practises for doing it.

    All users have to log in to the site so my first thoughts were to add an
    event to my login page that inserted the userID into an whosonline table in
    the sql backend, and an on logout which deletes the entry.
    I was also going to add an on session end event in my global.asax to remove
    the user from the DB if they hadn't physically logged out. The problem I can
    see with this is that if users don't log out and just close the browser etc
    my who's online is going to be 20ish minutes behind.

    Any one have any thoughts on a better way of acheiving this?

    Thanks


    ossie Guest

  2. Similar Questions and Discussions

    1. Log-in feature
      Okay, I have run into a little problem in creating an asp site. Many thanks to anyone who has any ideas. This is a rather complicated site--let me...
    2. the 3d feature
      other than not having to launch classic and use another app (dimensions) whats the point of the 3d feature in cs? the 3d feature is slo and maybe...
    3. Building an online portfolio
      I have a lot of photos that I would like to compile as an online portfolio and put on my website. Can I get people's opinions of which is the best...
    4. Professional Photographers - Sell your Photos Online , Online Proofing, Watermarking, Image Protection, and more.
      On 6 Jul 2003 11:40:28 -0700, in <9d2caaf1.0307061040.a857786@posting.google.com>, bluearchtop@my-deja.com (Ted Smith) said: Too expensive....
    5. Bug or feature in SQL SP
      Hi all. In db2diag.log I found next record 2003-07-03-13.21.46.812000 Instance:DB2 Node:000 PID:2096(db2dari.exe) TID:3144 Appid:...
  3. #2

    Default Re: ASp.net VB - Building a who's online feature

    If you can guarantee use of Internet Explorer browser only, you could make
    use of the onBeforeUnload event to trigger a database update if/when the
    user just closes their browser window/navigates away from the page.
    Other than that, I'm afraid that all you can really do is to set a lower
    session timeout and live with the who's online feature being out slightly...

    Oh - unless .NET allows you to do more that classic asp does in this regard
    (I just spotted the .net in the subject... duh! :)
    HTH
    Rob
    [url]http://robgt.com[/url]


    RobGT Guest

  4. #3

    Default Re: ASp.net VB - Building a who's online feature

    Thanks Rob
    According to our stats it's a 60/30 split with I.E/Firefox with about 10%
    using other browsers.

    I'll keep thinking & looking around


    "RobGT" <rob@lighthouseuk.removeme.net> wrote in message
    news:d2h19k$pqm$1@forums.macromedia.com...
    > If you can guarantee use of Internet Explorer browser only, you could make
    > use of the onBeforeUnload event to trigger a database update if/when the
    > user just closes their browser window/navigates away from the page.
    > Other than that, I'm afraid that all you can really do is to set a lower
    > session timeout and live with the who's online feature being out
    > slightly...
    >
    > Oh - unless .NET allows you to do more that classic asp does in this
    > regard (I just spotted the .net in the subject... duh! :)
    > HTH
    > Rob
    > [url]http://robgt.com[/url]
    >
    >

    ossie Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139