Discuz! The default timeout time for X2.5 backend is very short, and it exits after frequent operations. What should I do? You can modify the code.
Log on to the php VM ftp, download the "/config/config_global.php" file, and open it in a local text editor. The file is in the location of around 86th rows:
$ _ Config ['admincp'] ['checkip'] = 1;
Replace:
$ _ Config ['admincp'] ['checkip'] = 0;
If the backend does not operate for a long time, the system automatically exits the Administrator after the default timeout of 1800 seconds, prompting you to log on again.
Download the "/source/class/discus/discuz_admincp.php" file and open it in a local text editor. The file is in the location of around 32nd rows:
Var $ sessionlife = 1800;
Replace:
Var $ sessionlife = 1800000;
The "1800" parameter is the default system timeout time. Please modify it based on your actual needs.
After the modification is completed, upload the two files to the overwrite space, and log on to the dz administrator background to update the website cache. The problem is solved.