如何防止mvc中多个选项卡中的会话共享? [英] How to prevent session sharing in multiple tabs in mvc?

查看:56
本文介绍了如何防止mvc中多个选项卡中的会话共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户已登录并访问主页(例如)。我的问题是如何在新标签中打开同一个主页时阻止同一个用户,它会显示404错误 - 找不到文件。

请帮助我。

谢谢!

An user is logged in and acessing Home page (say). My question is how to prevent the same user when open the same Home Page in a new tab , it will show 404 Error - File not found .
Please help me.
thanks!

推荐答案

您的服务器代码对选项卡一无所知,或者客户端甚至根本不使用浏览器,因此您无法阻止此操作。无论用户选择如何使用它,您都应该编写自己的网站。
Your server code knows nothing about tabs, or if the client is even using a browser at all, so there is nothing you can do to stop this. You should write your site such that it works regardless of how the user chooses to use it.


这篇关于如何防止mvc中多个选项卡中的会话共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆