[英]Prevent users from opening multiple windows to the same web app
Let me know if it's possible to prevent users from opening the same java web in multiple IE window.让我知道是否可以阻止用户在多个 IE window 中打开相同的 java web。 If yes, then how?
如果是,那么如何?
No, there is no reliable way to prevent an individual from opening the very same webpage in multiple browser windows/tabs or even different browsers/machines/phones.不,没有可靠的方法可以防止个人在多个浏览器窗口/选项卡甚至不同的浏览器/机器/手机中打开同一个网页。
You need to solve the problem for which you think that this is the solution differently.您需要解决您认为这是不同的解决方案的问题。 For example, just don't store request scoped data in the session scope.
例如,不要将请求范围的数据存储在 session scope 中。
if you are trying to prevent multiple requests from the same client, you can look into your http server configuration.如果您试图阻止来自同一个客户端的多个请求,您可以查看您的 http 服务器配置。 there should be some settings to allow you to limit the number of concurrent connections for an ip and timeout settings.
应该有一些设置允许您限制 ip 和超时设置的并发连接数。 this feature is typically used to ensure quality of service and protect from DoS attacks.
此功能通常用于确保服务质量和防止 DoS 攻击。
(this feature is not available on all http servers and the configuration is vendor dependent so you have to consult your http server documentation.) (此功能并非在所有 http 服务器上都可用,并且配置取决于供应商,因此您必须查阅 http 服务器文档。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.