Asp.net redirects when reaching maximum connections / sessions

Is there a way to redirect the user when there are n people / sessions on the site. I have a requirement to redirect to the "sorry we are busy, please try again later" page if too many people are currently involved in the site (this should stop the flood of a live business service behind web pages). Ideal is that only new users are displayed on this page (users who are not logged in yet). I was going to just count concurrent logins, but I wondered if there is a better way to calculate current activity, rather than login status, since most users can stay on the system for a while.

early.

+3
source share
1 answer

There are several ways to do this.

I think the most obvious way would be to do this in IIS. If you are using IIS 6.0, you can do this by going to the website properties, go to the performance tab and change the connection limit to what you need. Then you can configure the default IIS error message (I think this is classified as 500 code).

- , . , , , (), (, ).

, , , - Ajax, , " ", .

.

,

+1

Source: https://habr.com/ru/post/1735580/


All Articles