returnurl是什么意思. [英] what is the returnurl mean.
本文介绍了returnurl是什么意思.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
returnurl是什么意思..
我用谷歌搜索了一下,但对它的理解却不是..
任何人都可以解释这种和平的代码
what does the returnurl mean..
i googled it but not get the understanding to if..
can anyone explanin this peace of code
<pre> if (User.Identity.IsAuthenticated && Request.QueryString["ReturnUrl"] != null)
{
Response.Redirect("NotAuthorized.aspx");
}
推荐答案
使用表单身份验证并导航到需要
的页面时 身份验证应重定向到login.aspx页面(或在web.config文件的< forms loginurl =">标记中指定的页面)... .NET将自动在您的login.aspx后面附加?ReturnUrl = [用户试图访问未经身份验证的页面].
这是一本好书,易于理解(部分:表单身份验证控制流)
http://msdn.microsoft.com/en-us/library/aa480476.aspx [ ^ ]
When using Forms Authentication, and navigating to a page that requires
authentication should redirect to the login.aspx page (or a page specified in the <forms loginurl=""> tag in the web.config file)... .NET will automatically append your login.aspx with ?ReturnUrl=[page the user tried to access un-authenticated].
This is a good read to understand (section: Forms Authentication Control Flow)
http://msdn.microsoft.com/en-us/library/aa480476.aspx[^]
这篇关于returnurl是什么意思.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文