限制其他浏览器浏览相同url的页面

发布于 2024-08-26 10:21:57 字数 364 浏览 4 评论 0原文

如何限制在其他浏览器中使用相同的 url 浏览页面而不记录 asp.net & c#.net。

我按照以下步骤操作 例如:

  1. 我正在登录一个用asp.net & 开发的页面。 c#.net。
  2. 我正在查看一个页面。让它成为管理页面。
  3. 我正在复制管理页面的网址。
  4. 我正在打开另一个浏览器窗口并粘贴网址。
  5. 我能够在其他浏览器中看到相同的管理页面。

问题是如何限制在其他浏览器中打开管理页面,如果用户当前正在查看管理页面时尝试在另一个浏览器中打开管理页面,那么应该将其重定向到登录页面? 这怎么可能实现呢? 有什么可以用.net框架的“登录”控制工具来做的吗?

how to restrict the page to be browsed in the other browser with the same urls with out logging asp.net & c#.net.

i followed the following steps
for example:

  1. i am logging in to a page developed in asp.net & c#.net.
  2. i am viewing a page.Let it be admin page.
  3. i am copying the url of the admin page.
  4. i am opening another browser window and pasting the url.
  5. i was able to see the same admin page in the other browser.

the question is how to restrict the opening of admin page in other browser,if they try to open admin page in another browser while user is currently viewing the admin page then it should be redirected to the login page?
how could this be accomplished?
is there any thing could be done with "login" control tool of the .net frame work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2024-09-02 10:21:57
  • 如果复制 URL,关闭浏览器,再次打开并粘贴 URL,它仍然有效吗?
  • 如果您复制 URL,通过电子邮件发送给朋友,然后将其粘贴到他们的浏览器中,它仍然有效吗?

我认为您不需要在这里做任何特别的事情,这就是会话的工作方式。当然,只要上述两种情况都行不通……

  • If you copy the URL, close the browser, open it up again and paste the URL does it still work?
  • If you copy the URL, email it to a friend who pastes it in to their browser, does it still work?

I don't think you need to do anything special here, this is just how sessions work. As long as the two cases above do not work, of course...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文