作者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/cn.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