Count - Get Number Of Concurrent Users Online?

May 3, 2010

I would like to know the number of users logged into my ASP.NET 2.0 application.

Points to be considered:

1) Simplest way would be to use Application or Cache object to have the counts on Session start or end. However this would fail if there is a worker process recycle. Wouldn't it?

2) Should't make a difference whether the session is inproc/state server managed/ or SQL server managed.

3) Should preferably be seamless to a web-farm architecture.

View 3 Replies


Similar Messages:

Large Number Of Concurrent Users?

Apr 28, 2010

I am working on a website in which more than a thousand users can login at a time and there may be more than 50000 total users. I am worried about the performance of the application in case of concurrent access.

what is the best way to manage that, so that my application runs without any performance issues.

View 2 Replies

C# - The Number Of Users Online And Number Of Active Session?

Mar 12, 2011

My environment is ASP.Net + IIS 7.0 + Windows Server 2008 + .Net 3.5. I am wondering whether the number of users online and number of active session are the same thing? The other question is, no matter whether they are the same, how to calculate them (i.e. for a given time, what is the number of users online, and related active number of sessions)?

View 1 Replies

Security :: How To Display Users And Number Of Users Online

Oct 12, 2010

We have implemented the ASP membership and roles..and we would like to display the users currently logged in and also display the number of users online so we can display that on the page. The list of users woudl only be available to our admins. BUt the number of users will show for everyone.

View 9 Replies

Show Number Of Online Users?

Jun 9, 2010

what I need to know is how to show a count of how many users are signed on with a custom sql script, here is what i got that shows total users but not total online

[Code]....

Again this gives a total count but i need a total count of who is online with this setting, and try to keep it in sql statement if possible as i have not yet learned how to use stored procedures.

View 23 Replies

C# - Counting Online Number Of Users Of A Web Application?

Jul 18, 2010

I am using ASP.Net + .Net 3.5 + VSTS 2008 + IIS 7.0 + C# to develop a web application. I want to count how many users are online. This is my current implementation,when Session_Start is called, I will increase # of users online by 1;when Session_End is called, I will descrease # of users online by 1.Two quesitons,A Is that implementaiton correct?B. Another question is, I think this method can not track # of users of real time, since when user closes the browser, Session_End will not be called immediately (Session_End will be deferred to be called). Correct?

View 3 Replies

Web Forms :: How To Show The Number Of Users Online

May 7, 2015

i want to know online user in my web site.

View 1 Replies

Count Number Of Users Locked Out / Approved?

Aug 1, 2010

I have got the total number of registered user's and the total number of users online working without any problems after a search on here.

[Code]....

but I would like to expand this a little. Can any one tell me how I would display the total number of users who are approved and the total number who are locked out.

View 5 Replies

State Management :: Count The Number Of Users Per Webpage?

Sep 27, 2010

I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page. I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file. My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload. The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the value always stays the same (adds one in page load, subtracts one in page unload).

How else can I track number of users on each page? (simply, becuase I am still a beginner). I have already done some google searching and haven't come up with anything useful.

All my pages are being navigated via a TreeView control.

View 6 Replies

Forms Data Controls :: Gridview Row Count / How To Get A Count Of The Number Of Rows That Are Returned

Dec 17, 2010

When a user submits the query to SQL when clicking a button I need to get a count of the number of rows that are returned. Which event does the gridview.count code need to be place in?

Right now I have it in the btn_click event, but in order to get it to count the rows you have to hit the button twice since the query is not returned yet. Here is my code.

[Code]....

View 1 Replies

MVC's AsyncController Be Used To Service Large Number Of Concurrent Hanging Requests (long Poll)??

Feb 13, 2011

Frameworks like Node.js, Tornado, and Twisted let developers create server-push applications that supports large number of concurrent hanging requests (10k+). From what I understand, they all achieve this by not creating threads to service each hanging request.

Can AsyncController be used to service large number of inactive concurrent requests?If so, are there any reasonably large ASP.NET MVC websites using this approach to create long-poll applications?

View 1 Replies

Add Code To Know Visitors Count And Online Visitors Count?

Jan 5, 2011

How to add code to know visitors count and online visitors count ?

is there a good control or code ?

I use ASP.Net, C#.Net ad SQL Server

View 5 Replies

Web Forms :: Count Online Visitors Of Website?

Aug 17, 2010

I need to show the number of online visitors and all visitors in my website. I use below code in global.asax file. But I thinks it is not a right way because I have seen false result for online visitors in my website.

Codes:

void Session_Start(object sender, EventArgs e)
{
Application.Lock();
Application["OnlineUsers"] = (int)Application["OnlineUsers"] + 1;
Application.UnLock();
System.Data.SqlClient.SqlConnection cn = new

[Code]....

View 4 Replies

Count User Online When Opening Website?

Nov 16, 2010

count user online when opening the asp.net website.

View 4 Replies

AJAX :: To Create A Online Test Program Using Count Down

Sep 21, 2010

How to Create a Online Test Program using Count down?The page showing one question with 4 answer fetch from the database sql server and there will bw a countdown timer for test.

View 2 Replies

Data Controls :: Display Online Visitors List And Count

May 7, 2015

I want to show visitor count along with online users . How i do this?

View 1 Replies

System.Threading.Tasks - Limit The Number Of Concurrent Tasks?

May 24, 2010

I have just started to look at the new "System.Threading.Tasks" goodness in .Net 4.0, and would like to know if there is any build in support for limiting the number of concurrent tasks that run at once, or if this should be manually handled.

E.G: If I need to call a calculation method 100 times, is there a way to set up 100 Tasks, but have only 5 execute simultaneously? The answer may just be to create 5 tasks, call Task.WaitAny, and create a new Task as each previous one finishes. I just want to make sure I am not missing a trick if there is a better way to do this.

[code]....

View 5 Replies

Get A List Of Online Users In Mvc?

Jan 23, 2011

I have a page in my application which always shows updated list of online users. Now, to keep the list-which is stored in application object- updated, i do the below steps

add user to list when login remove user on log off Then to handle browser close/navigate away situations, I have a timestamp along with the username in the collectionAn ajax call every 90 seconds updates the timestamp.

The problem:

I need something to clean this list every 120 seconds to remove entries with old timestamps.

How do I do this within my web application? ie Call a function every 2 mins.

PS: I thought of calling a webservice every 2 mins using a scheduler , but the hosting environment do not allow any scheduling.

View 2 Replies

How To Get Current Online Users List

Jun 22, 2010

I need to know to get current online user list. How can I achieve. I am using membership concepts that is asp login control.

View 1 Replies

Manage Users And Roles Online?

Feb 15, 2010

I'm looking to be able to manage my users and roles online. So that I don't have to re create the wheel, is there a way I can upload the asp.net configuration tool for my website?

View 4 Replies

Checking For Online Users On A Game?

Jan 20, 2011

I need a reliable way of checking if a user is logged into a web based game. This is the scenario:

I have a game on the front end built in Flash with Actionscript 3, that calls a web Service in .NET. So in some way I'd like to create a reliable way of getting a list of users that are logged into the game. I would need to create a Timer in Actionscript that calls a method in the Web Service every certain amount of time, but I'm not sure which is the best way to do it on the server side.

I remember in the old days with classic asp I'd use global.asa and it was not reliable at all. Also, checking a database with a boolean, would always depend on the user clicking on "logout". So i guess there needs to be some kind of asyncronous coding in there somehow.

View 9 Replies

Security :: Get List Of Users Who Are Online?

Sep 22, 2010

i am using membership classes,,, i want to fetch the list of users who are online based on a condition... the condition is that i want to fetch the users with a specified userids... eg i have 10 user's userids and i want to check which of these users are online..

View 6 Replies

MVC :: List The Current Users Online (like Chat)

Jul 7, 2010

How can I get all the current users online in MVC 2 (like chat)?

Remember that MVC 2 (or v1.0) template was built-up with membership view/controller/model. That is possible using that model, I can get the online users?

View 2 Replies

Security :: Get Current Online Users List?

Jun 22, 2010

I need to know to get current online user list. How can I achieve. I am using membership concepts that is asp login control.

View 1 Replies

VS 2008 - How To Know Which Users Are Online (Login Security)

Aug 5, 2011

I've got a website project and I use my own login security and save the user and other info in session variables. Is there any way to know when they are online and offline by their user name I have in a session variable? Or do I need to use another method such as the asp.net user security?

I do know with the asp.net security I can check if a user is authenticated.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved