仅当空闲时间超过10分钟左右时上传表单时出错


Getting error when uploading form only if idle for more than 10 or so minutes

我有一个表单脚本,它有25个左右的文本字段和2个图像上传字段。脚本运行良好,但如果你空闲9或10分钟,就会出现一个错误,即找不到网页或超时。

查看我之前发布的与此相关的问题的屏幕截图:
得到"网页未找到";以及";超时错误";表单

在我的错误日志中,我得到了这个错误:

[Thu Mar 08 12:11:52 2012] [error] [client 66.249.67.230] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

我现在很困惑。我只在你空闲10分钟左右的时候才会发生。你可以在另一个问题的屏幕截图中看到我的php.ini文件。在那里我有max_input_time = 10080,所以我不知道为什么它会超时。。。不管怎样,我真的被这件事难住了。有什么建议吗?谢谢

更新——回应评论

ob_start();
session_cache_expire(180);
session_start();

您是否要求用户在使用此表单之前登录?听起来你的表单目标脚本试图在会话到期后将用户重定向到登录表单(或类似的表单)。

会话到期时间是多少?

请参阅:session_cache_expire