Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 7e0614e7ef9a56778607315e7b84aa00 > files > 65

php-7.4.12-1.mga7.src.rpm

#!/bin/bash -e

max=1440

cur=$(sed -n -e 's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p' /etc/php.d/*_session.ini 2>/dev/null || true);
[ -z "$cur" ] && cur=0
[ "$cur" -gt "$max" ] && max=$cur

echo $(($max/60))

exit 0