开发者

How to force ASP.NET forms authentication to use absolute URL for ReturnUrl parameter?

When you use ASP.N开发者_如何学编程ET forms authentication, and you want to surf to a secure page like securepage.aspx, you would be redirected to this URL:

http://www.example.com/login.aspx?returnurl=securepage.aspx`

Is there a way to get the absolute URL in login page, like:

http://www.example.com/login.aspx?returnurl=http://www.example.com/securepage.aspx

I need this feature, because I'm working on a rather complicated SSO project, and I need to always work with absolute URLs.


try this

<httpRuntime useFullyQualifiedRedirectUrl=”true”
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜