Explore the issue of prohibiting the same user from repeatedly landing on different machines at the same time

Source: Internet
Author: User
Tags exit
Problem | repeat

about how to prohibit the same user at the same time on different machines repeatedly landing the problem I think so, if there is a wrong place also please correct me, we discuss together.

Mainly want to solve the problem at the application level. The reason for not using the database is that the database is used to judge whether the landing is very expensive system resources, with application can solve the problem of resource consumption.

The overall idea is to set the user activity time and timeout, if the user in the specified timeout period is not active, it is considered that the user is offline, or abnormal offline (such as power). When the user exits the browser, triggering the Application_unload event, it can be set in the Global.asa, or the Javascript+ajax can be used to determine and perform an exit operation, and then perform application emptying when exiting. If you are using JavaScript to determine exit, you need to use Ajax to perform application emptying operations. Here is my main idea flow diagram.


SmartDraw 7 SDR source file Click here to download the source file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.