Show all online user list
I am making a website where i have to show list of all online users how can i do this, plz help me its argnt.....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muralidharan Dheenadhayalan46 reputationPosted May 22, 2011, 11:22 PM EDT
void Session_Start(object sender, EventArgs e)
{
Application.Lock();
Application["OnlineUsers"] = (int)Application["OnlineUsers"] + 1;
Application.UnLock();
}
void Session_End(object sender, EventArgs e)
{
Application.Lock();
ArrayList Users = (ArrayList)Application["OnlineUserName"];
Get username,iterate it and remove.
Users.Remove("existingUsers");
Application["OnlineUsers"] = (int)Application["OnlineUsers"] - 1;
Application.UnLock();
}
http://www.andreas-kraus.net/blog/show-aspnet-membership-online-users/
http://forums.asp.net/t/1284650.aspx
http://blog.dreamlabsolutions.com/post/2009/07/13/ASPNET-Membership-Show-list-of-users-online.aspx
Hope this helps you.
Ankit NandekarRank #703 · 3.4K reputationPosted May 22, 2011, 11:37 PM EDT
Muralidharan Dheenadhayalan46 reputationPosted May 23, 2011, 12:11 AM EDT
http://www.c-sharpcorner.com/UploadFile/munnamax/whoseonline08042007062609AM/whoseonline.aspx
Sample Code
http://blog.dreamlabsolutions.com/post/2009/07/13/ASPNET-Membership-Show-list-of-users-online.aspx
How to set-up Membership provider:
http://www.asp.net/general/videos/how-do-i-set-up-the-sql-membership-provider
http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx
Hope this helps you.