2010-11-14 88 views
1

我試圖使用窗體身份驗證從我的登錄頁面(https)重定向到我的默認頁面(http)。身份驗證模式=「窗體」登錄https默認http

<forms name="mysite.com" loginUrl="https://www.mysite.com/Login.aspx" protection="All" defaultUrl="http://www.mysite.com/Default.aspx" requireSSL="false" timeout="30" slidingExpiration="true" cookieless="UseCookies"></forms> 

使用全成登錄後:

Response.Redirect(FormsAuthentication.DefaultUrl, True) 

默認頁面仍會返回通過https。

我做錯了什麼?還是有更好的方法來實現這一目標?

回答