Debian based systems Session killed at 30 minutes in special cron, how to override?

前端 未结 6 1618
离开以前
离开以前 2020-12-09 06:01

Have been pulling out my hair trying to find out why my sessions are being terminated/killed/destroyed at 30 minutes. Well it looks like Debian based systems have a special

6条回答
  •  温柔的废话
    2020-12-09 06:32

    Use below cron to delete unused sessions.

    39 20     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
    

提交回复
热议问题