简体   繁体   English

螳螂超时问题

[英]mantis time out issue

I have configured Mantis, the thing is after sometime if I stay idle, Mantis sort of timeout. 我已经配置了螳螂,事情是如果我闲着一段时间之后,螳螂有点超时了。 I refresh the page again and again but it does not load Mantis at all. 我一次又一次刷新页面,但它根本不会加载Mantis。 Whenever I restart XAMPP it starts working fine (until I don't sit idle). 每当我重新启动XAMPP时,它就可以正常工作(直到我不闲着为止)。

Here are some settings that i have seen wrt exipration 这是我见过的一些设置

# token expirations
define( 'TOKEN_EXPIRY', 60 * 60 );

# Default expiration of 60 minutes ( 3600 seconds )
define( 'TOKEN_EXPIRY_LAST_VISITED', 24 * 60 * 60 );
define( 'TOKEN_EXPIRY_AUTHENTICATED', 5 * 60 );
define( 'TOKEN_EXPIRY_COLLAPSE', 365 * 24 * 60 * 60 );

Can someone tell me how to get through this timeout thing whatever it is? 有人可以告诉我如何解决这个超时问题吗? I am using "Mantis 1.2.8". 我正在使用“螳螂1.2.8”。

this is what u need to do. 这是你需要做的。 On authentication_api.php you must comment this part like this 在authentication_api.php上,您必须像这样注释此部分

$t_login_methods = Array(
    MD5,
//      CRYPT,
    PLAIN,
);

and it will work found that from mantis forums. 并且可以在螳螂论坛上找到。

The offical way is to change you configuration file (config_inc.php). 官方方法是更改​​您的配置文件(config_inc.php)。

Make sure you have a line in config file like $g_reauthentication_expiry = 60*60*2; 确保配置文件中有一行,例如$g_reauthentication_expiry = 60*60*2; This is for example 2 hours for admin to need re-login. 例如,管理员需要2个小时才能重新登录。

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

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