升级jumpserver 后总是出现 登录已过期,请重新登录,相当头疼,这个是session 的问题,禁用就可以了
root@server:~# cd /opt/jumpserver
jumpserver/ jumpserver-installer-v3.10.7/ jumpserver-installer-v3.4.3/
root@server] cd /opt/jumpserver/config/
root@server:/opt/jumpserver/config# ls
certs config.txt config.txt.20240429.bk core koko mariadb mysql nginx redis
root@serve:/opt/jumpserver/config# grep -rin "SESSION" config.txt
108:# Core Session 定义,
109:# SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期,
110:# SESSION_EXPIRE_AT_BROWSER_CLOSE=true 表示关闭浏览器即 session 过期
112:SESSION_COOKIE_AGE=86400
#把session 改为false
113:#SESSION_EXPIRE_AT_BROWSER_CLOSE=true
114:SESSION_EXPIRE_AT_BROWSER_CLOSE=false
重启jumpserver
./jmsctl.sh restart