Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > d09581e79f4287614502881a6170a92f > files > 1

php-session-5.2.6-18.3.1mdv2009.0.x86_64.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/lib64/php/maxlifetime

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