开发者

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

开发者 https://www.devze.com 2023-04-08 20:03 出处:网络
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:

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

精彩评论

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