ASP.NET窗体身份验证失败的请求。原因:提供的票证已过期 [英] ASP.NET Forms Authentication failed for the request. Reason: The ticket supplied has expired

查看:4252
本文介绍了ASP.NET窗体身份验证失败的请求。原因:提供的票证已过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误多次在事件日志和用户都已经注销。

I am getting this error many times in the event log and users are logged out.

事件code:4005结果
  事件消息:表单验证失败的请求。原因:提供的票证已过期结果。
  活动时间:2011/3/10下午3点35分22秒结果
  事件时间(UTC):2011/3/10下午8时35分22秒结果
  事件ID:fc2f70cc85014b0ca7dbb01471617b66结果
  事件序列:3392结果
  事件发生:1结果
  事件详细信息code:50202

Event code: 4005
Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired.
Event time: 3/10/2011 3:35:22 PM
Event time (UTC): 3/10/2011 8:35:22 PM
Event ID: fc2f70cc85014b0ca7dbb01471617b66
Event sequence: 3392
Event occurrence: 1
Event detail code: 50202

思考:


  • 我没有使用Web表单。

  • 我不认为应用程序池是回收。

  • 我比较了几个事件的进程ID,它是平等的。

  • 我的机器关键是不要自动生成。

推荐答案

听起来像是一个错误,当你的窗体身份验证票证已过期,你会得到。什么是超时周期车票呢?是将其设置为滑动或绝对过期?

Sounds like an error you would get when your forms authentication ticket has expired. What is the timeout period for your ticket? Is it set to sliding or absolute expiration?

相信对于超时默认为20分钟,因此如果用户通过认证并在某些时候不打你的站点20分钟他们的票将到期滑动过期。如果它被设置为绝对过期其中X是超时设置,将到期分钟的X次签发后。

I believe the default for the timeout is 20 minutes with sliding expiration so if a user gets authenticated and at some point doesn't hit your site for 20 minutes their ticket would be expired. If it is set to absolute expiration it will expire X number of minutes after it was issued where X is your timeout setting.

您可以设置超时和到期政策(如滑动,绝对)在网​​络/ machine.config中 /configuration/system.web /认证/表格

You can set the timeout and expiration policy (e.g. sliding, absolute) in your web/machine.config under /configuration/system.web/authentication/forms

这篇关于ASP.NET窗体身份验证失败的请求。原因:提供的票证已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆