ASP如何防止除非您登录网站而在页面上导航 [英] ASP how to prevent navigation on pages unless logged into the website
本文介绍了ASP如何防止除非您登录网站而在页面上导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我找到如何阻止ASP页面上的导航,除非登录网站
谢谢
沙迪,
最好的问候.
please help me to find how could i prevent the navigation on my ASP pages unless logged into the website
Thank You,
Shadi,
Best Regards.
推荐答案
您是否在谈论Asp.net
页面? (您为问题添加了Asp.net
标记.)
如果是这样,那么Forms Authentication
可使您非常轻松地实现此目的. 如果您真的在谈论ASP
页面(不是Asp.net页面),请跳过此答案
如果使用Form Authentication
进行身份验证,则只需在Asp.net
应用程序中实现授权即可实现.
Forms Authorization
使您可以在web.config
文件中轻松地配置页面访问身份验证的用户.
请参阅 http://msdn.microsoft.com/en-us/library/ff647070.aspx [ ^ ]了解有关此内容的更多信息.
Are you talking aboutAsp.net
pages? (You putAsp.net
tag for the question).
If that is so, then, theForms Authentication
lets you implement this very easily. Please skip this answer if you are really talking aboutASP
pages (Not Asp.net pages)
If you useForm Authentication
for Authentication, you just need to implement Authorization in yourAsp.net
application to implement this.
Forms Authorization
lets you configure the page access to authenticated users very easily, in theweb.config
file.
See http://msdn.microsoft.com/en-us/library/ff647070.aspx[^] to learn more about this.
用于身份验证的插入目录结构避免子目录中未经身份验证的用户使用表单身份验证是执行此操作的最佳方法
Inser Directory structure for authentication avoid the unauthenticated user in sub directory use forms authentication is the best way to do this
您还可以使用文件夹身份验证在这种情况下.
you can also use folder authentication in this case.
这篇关于ASP如何防止除非您登录网站而在页面上导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文