错误4005窗体身份验证失败 - 提供的票证已过期 [英] Error 4005 Forms authentication failed - ticket supplied has expired

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

问题描述

我正在使用ASP.NET 2.0网站。时不时地(每天10+次100+用户日常)我收到此错误:表单验证失败 - 提供的票证已过期

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 expired.

下面是我的web.config片断:

Here's my web.config snippet:

<authentication mode="Forms">
    <forms name=".CLLSAUTH" loginUrl="login.aspx" protection="All" path="/" timeout="60" />
</authentication>

我已经看了几种解决方案,有人提到会话超时,但它也是在我的配置60分钟。两件事,我没有运行webfarm,和应用程序不被左右出现错误时回收。

I've looked at several solutions, someone mentioned the session timeout, but it's also 60 minutes in my config. Two more things, I'm not running a webfarm, and the app is not being recycled around the time the error occurs.

任何线索?

推荐答案

我不知道你的问题是什么...在这种情况下,当用户拥有自己的浏览器打开了一个多小时,他们的身份验证cookie倍出。下一次,他们向服务器发送BAM的请求。

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.

尝试添加 slidingExpiration =真正的来的表格元素。这样的超时每次重新启动用户点击服务器时间。

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

这可能也可能是因为IIS回收你的工作进程。你必须检查你的日志,看看是否有人发生导致该错误之前。

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.

如果您的应用程序在不同的服务器上运行,则可能是在窗体身份验证Cookie机器关键的问题被拒绝,因为它起源在不同的服务器上。但它听起来并不像你从您的qeustion一个Web场运行。

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 originated on a different server. But it doesn't sound like you're running on a web farm from your qeustion.

这篇关于错误4005窗体身份验证失败 - 提供的票证已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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