This is actually kind of by design. WWW is a stateless system. Users aren't
connected. They connect, get the info, disconnect. All these "counts" are
false in reality. Now, that said, the Session End will fire when they
timeout so you will still get a decent count but it may take a while for the
timeout to occur. A "logout" button will help as well, with the
Session.Abandon as you indicated but there is no 100% way to get the count
you are after because that number doesn't really exist in the first place...
Make sense?
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site:
http://www.Darkfalz.com
Blog:
http://blog.Darkfalz.com
"Keith-Earl" <> wrote in message
news:%...
>I thought for sure Session End would fire when the user closes his browser,
>but no luck. The only way I can get the event to fire is to run a
>Session.Abandon, but is that really practicle? When a user is down they
>will probably close out the browser or navigate somewhere else.
>
> I want to keep a total count of users in an Application state variable but
> I cannot count on the decrement code to run. What can I do to keep up with
> Total Users in my app?
>
> Many thanks,
>
> Keith
>