如何在没有有效凭据的情况下在asp.net中会话用户 [英] How to session out a user in asp.net with out valid credentials

查看:60
本文介绍了如何在没有有效凭据的情况下在asp.net中会话用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,用户可以在其中使用有效的凭据登录.
登录后,如果用户复制页面之一的URL并粘贴到相同的浏览器或不同的浏览器中,则他可以访问该页面.任何防止这种情况的解决方案.
在此先感谢您..在进行相同操作时,我需要会话.

I have a website in which user can login using valid credentials.
After login if user copy url of one of the page and paste in same browser or different browser he can access the page. Any solution to prevent this.
Thanks in advance.. I need session out when doing the same.

推荐答案

不,我们无法更改互联网的工作方式或浏览器的工作方式.如果您要的是工作,那么所有弹出窗口都将无法工作.
No, we can''t change how the internet works, or how your browser works. If what you wanted were to work, then all popups would not work, as a result.


我的理解是,您需要用户仅在登录后才能访问该页面.IF他尚未登录,但只有该页面的URL(他可能早些时候已复制,因此他应该无法看到此页面)

如果我的理解是正确的,那么您需要的是asp.net membership and roles功能或custom forms authentication.

以下链接将有所帮助:
了解ASP.NET角色和成员资格-入门教程 [ ^ ]
了解并实现ASP.NET自定义表单身份验证 [ ^ ]
My understanding is that you need the user to access the page only when he is logged in. IF he is not logged in but only has the URL to the page(which he might have copied earlier then he should not be able to see this page)

If my understanding is correct then what you need is either the asp.net membership and roles functionality or custom forms authentication.

following links will help:
Understanding ASP.NET Roles and Membership - A Beginner''s Tutorial[^]
Understanding and Implementing ASP.NET Custom Forms Authentication[^]


这篇关于如何在没有有效凭据的情况下在asp.net中会话用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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