作者unstoppable (BEN)
看板C_Sharp
標題[問題] ASP Login控制項
時間Mon Aug 21 19:03:16 2017
登入的頁面為Index.aspx
使用者透過radiobutton來選擇不同的登入層級
當地一次訪問www.mywebsite.com的時候
網站會跳轉到www.mywebsite.com/Index.aspx?ReturnUrl=%2f
也可以登入
但是我如果再次訪問www.mywebsite.com就會出現500錯誤
架設在自己的電腦一切都正常
以上的問題是放到azure上面後發生的
查了LOG錯誤訊息是
Forms authentication failed for the request. Reason: The ticket supplied has
expired.
我不需要再重新導回登入後的頁面
只需要能夠導回到Index.aspx
請問我該怎麼處理呢? 感謝
抱歉,補充config
<authentication mode="Forms">
<forms loginUrl="Index.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.101.117
※ 文章網址: https://webptt.com/m.aspx?n=bbs/C_Sharp/M.1503313399.A.E55.html
1F:推 wezmag: 可以貼web.config FormsAuthentication區段看看嗎? 08/22 08:21
※ 編輯: unstoppable (36.231.99.232), 08/29/2017 05:00:20