Error 4005 Forms authentication failed - ticket supplied has expired

前端 未结 1 1735
甜味超标
甜味超标 2020-12-17 22:29

I\'m running a website using ASP.NET 2.0. Every now and then (10+ times per day on 100+ users daily) I receive this error: Forms authentication failed - ticket supplied has

相关标签:
1条回答
  • 2020-12-17 22:58

    I'm not sure what your question is... In this case, when a user has their browser open for more than an hour, their authentication cookie times out. The next time they send a request to the server BAM.

    Try adding slidingExpiration="true" to the form element. That way the timeout restarts every time a user hits the server.

    This could possibly also be because IIS recycled your worker process. You'd have to check your logs to see if this happened before somebody caused this error.

    If your application is running on different servers, there might be an issue with the machine key in the forms authentication cookie being rejected because it's originated on a different server. But it doesn't sound like you're running on a web farm from your question.

    0 讨论(0)
提交回复
热议问题