|
 |
aspx thread: who is online?
Message #1 by rabihy@h... on Sun, 24 Feb 2002 17:02:15
|
|
hi,
I am planing to implement an application that let me track and list online
clients.
I have an application done with ASP3, it updates the database and change
the status on the database from offline to online once the user log in.
But i heard that it could be done much easier and more efficient with
ASP.NET
I read that i can putnevery client, once he logs in, in Application. So i
can check who is online, but how i can check if he went offline (by
closing the browser)? and do you think i can put the online buddies in
array in the Application? any example on the web or asptoday?
My old application has lot of backwards because it can not check if user
is offline, because viewers does not logoff, they just close the browser...
What is the best way in sending online messages. or online notifications.
Or developping a "buddies" list with ASP.NET
Thank you in advance,
Raby
Message #2 by "Scott Worley" <worleys@h...> on Mon, 25 Feb 2002 03:25:28 +0000
|
|
<html><div style='background-color:'><PRE>Hi, see suggestions
inline,</PRE><PRE>Hope they Help ;)</PRE><PRE> </PRE><PRE>Scott Worley
</PRE><PRE> Author of: Inside ASP.NET, New Riders Publishing</PRE><PRE> Working on:
Commerce Server 2002 and .NET Unleashed, SAMS</PRE>
<P> </P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>----Original Message Follows----
<DIV></DIV>From: rabihy@h...
<DIV></DIV>Reply-To: "ASP+" <ASPX@P...>
<DIV></DIV>To: "ASP+" <ASPX@P...>
<DIV></DIV>Subject: [aspx] who is online?
<DIV></DIV>Date: Sun, 24 Feb 2002 17:02:15
<DIV></DIV>
<DIV></DIV>hi,
<DIV></DIV>
<DIV></DIV>I am planing to implement an application that let me track and list online
<DIV></DIV>clients.
<DIV></DIV>
<DIV></DIV>I have an application done with ASP3, it updates the database and change
<DIV></DIV>the status on the database from offline to online once the user log in.
<DIV></DIV>But i heard that it could be done much easier and more efficient with
<DIV></DIV>
<P>ASP.NET </P>I read that i can putnevery client, once he logs in, in Application. So i
<DIV></DIV>can check who is online, but how i can check if he went offline (by
<DIV></DIV>closing the browser)? and do you think i can put the online buddies in
<DIV></DIV>
<P>array in the Application? any example on the web or asptoday?</P>
<P>-->You can use the OnSessionStart and OnSessionEnd events in the global.asax to add a user session to a
list in the Application State, or to removed a user session from the Application State. </P>
<DIV></DIV>
<DIV></DIV>My old application has lot of backwards because it can not check if user
<DIV></DIV>
<P>is offline, because viewers does not logoff, they just close the browser... </P>
<P> </P>
<P>-->the above will work, since when a browser is closed, the users session is closed shortly afterwards in most
cases, this is a far from perfect way of doing what you require, but it should be suffiecient for your need, the only issue here
would be the delay between the browser being closed and the user session timeout/ending, normally not an issue but you should be
aware of this timing issue.</P>
<P> </P>
<DIV></DIV>
<DIV></DIV>What is the best way in sending online messages. or online notifications.
<DIV></DIV>
<P>Or developping a "buddies" list with ASP.NET </P>
<P>-->big question, and quite a few ways to do this, I would sugest getting your initial way up and running, then
looking at other alternatives, feel free to mail me of list, for more ways on how this can be achieved, or if you are having
difficulty with the above scenario and require more assistance</P>
<P>Scott Worley: <A href="mailto:worleys@p...">worleys@p...</A></P>
<P> </P>
<P> </P>
<P> </P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Thank you in advance,
<DIV></DIV>Raby
<DIV></DIV>---
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Join the world?s largest e-mail service with MSN Hotmail. <a
href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html>
|
|
 |