Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 3b6b4a2b655ba3596a5db7a261d28fd4 > files > 1

php-session-7.3.16-1.mga7.armv7hl.rpm

#!/bin/bash
# /etc/cron.d/php: crontab fragment for php
# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined.  See /usr/lib/php/maxlifetime

# Look for and purge old sessions every 30 minutes
09,39 * * * *  root [ -d /var/lib/php ] && find /var/lib/php/ -type f -depth -mindepth 1 -maxdepth 1 -mmin +$(/usr/lib/php/maxlifetime) -print0 | xargs -r -0 rm