2013年11月14日星期四

How to Extend zencart1.51 backstage login time without automatically exit

The zencart 1.51 version , I found backstage after landing is very sort, if without any action , then up to 15 minutes after the automatic withdrawal , this is too much trouble for the management background .This is done on security zencart1.5 an improvement , the background set maximum is 15 minutes . Many people want to delay this background landing time .So how to make the background a little longer time without landing automatically withdraw it ? This can be achieved by modifying the code to extend the background administrator session time .
Open the file includes / functions / sessions.php/ / / / / / / / / / / / / / / / / / / / /
if (IS_ADMIN_FLAG === true) {if (! $ SESS_LIFE = (SESSION_TIMEOUT_ADMIN> 900? 900: SESSION_TIMEOUT_ADMIN)) {$ SESS_LIFE = (SESSION_TIMEOUT_ADMIN> 900? 900: SESSION_TIMEOUT_ADMIN);}}Here is the background to set the administrator SESSION_TIMEOUT_ADMIN session time , the default maximum is 900 seconds.The above code amended as follows:
if (IS_ADMIN_FLAG === true) {if (! $ SESS_LIFE = (SESSION_TIMEOUT_ADMIN = 900? 9000: SESSION_TIMEOUT_ADMIN)) {$ SESS_LIFE = (SESSION_TIMEOUT_ADMIN = 900? 9000: SESSION_TIMEOUT_ADMIN);}}Then in the background - basic settings - Management dialog timeout in seconds can be set to 900 seconds , the above code is that if you set a time of 900 seconds , then here is the modified session time will be 9000 seconds , the equivalent of 150 minutes , but also If, after landing back is nothing operation , it will be at 150 minutes after the re-visit , this time completely long enough. So do not always enter the account password to login , especially when doing development .
Tagged under:

0 评论:

发表评论