1、设置配置

/* SESSION全局配置 */
 'SESSION_OPTIONS' => array(
        'path' => RUNTIME_PATH . 'Temp/',
        'use_cookies' => 1,         //是否在客户端用 cookie 来存放会话 ID,1是开启
        'use_trans_sid' => true,    //跨页传递
        'expire' => 10, // 秒
),

2、修改functions.php

// if (isset($name['expire'])) ini_set('session.gc_maxlifetime', $name['expire']);
if(isset($name['expire'])){ini_set('session.gc_maxlifetime', $name['expire']);ini_set('session.cookie_lifetime', $name['expire']);}

保存,清除浏览器和服务器RunTime/Temp 下缓存,再次登录页面,等待过期即可。(测试时候可以设置expire=10)

相关文章:

  • 2021-09-01
  • 2022-02-13
  • 2021-09-10
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2022-02-03
  • 2021-07-23
  • 2022-01-01
  • 2021-05-24
相关资源
相似解决方案