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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muralidharan DheenadhayalanPosted May 23, 2011, 4:11 AM
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.
Ankit NandekarPosted May 23, 2011, 3:37 AM
Muralidharan DheenadhayalanPosted May 23, 2011, 3:22 AM
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.