简体   繁体   English

Apache 配置请求超时和用户 session 超时

[英]Apache configurations for request timeout and user session timeout

I have a large photo that I am trying to upload and after about 30 seconds the screen just goes blank and there are no error logs.我有一张大照片,我正在尝试上传,大约 30 秒后屏幕变为空白,并且没有错误日志。 One guess is that it might be request timeout time.一种猜测是它可能是请求超时时间。 How can I increase that in Apache?如何在 Apache 中增加它?

Also, while I am at it, how do I extend the user session timeout?另外,当我这样做时,如何延长用户 session 超时?

Thanks!谢谢!

In PHP, you can increase the max_execution_time in php.ini.在 PHP 中,您可以增加 php.ini 中的max_execution_time Also, set_time_limit($numseconds) can be used in a script.此外, set_time_limit($numseconds)可以在脚本中使用。

And I believe 30sec is the default.我相信 30 秒是默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM