Modify Discuz! X2.5 background timeout

Source: Internet
Author: User

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.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.