> I need to know if the client is connected from the
session_end, how can I do this.....
Use this handy routine in your session_onend;
bClientConnected = False
Now if you want to know if the client is connected in your
session_onend simply query the value of "bClientConnected".
The only time the client is "connected" to your server is
when they are physically receiving a response which is why
you would use Response.IsClientConnected inside a normal
ASP page. If you were writing out 100,000 lines of a
table you might want to check that the data is being
receieved by a browser somewhere.
Beyond the milliseconds that client and server are
connected via TCP/IP, the server has no way of knowing if
the client is still looking at their site or if they have
shut the browser or are just looking at other sites.
When the session_onend fires the server is telling you
that it is now assuming that the client has wandered off
and is no longer interested in your site. It can't know
for sure cos HTTP is connectionless, so it makes the best
guess it can and relies on the timeout.