[問題] ASP Login控制項

看板C_Sharp作者 (BEN)時間8年前 (2017/08/21 19:03), 8年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
登入的頁面為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://www.ptt.cc/bbs/C_Sharp/M.1503313399.A.E55.html

08/22 08:21, , 1F
可以貼web.config FormsAuthentication區段看看嗎?
08/22 08:21, 1F
※ 編輯: unstoppable (36.231.99.232), 08/29/2017 05:00:20
文章代碼(AID): #1PchttvL (C_Sharp)