Skip to content

Instantly share code, notes, and snippets.

@gsouf
Created May 24, 2013 13:31
Show Gist options
  • Save gsouf/5643517 to your computer and use it in GitHub Desktop.
Save gsouf/5643517 to your computer and use it in GitHub Desktop.
Php clean session + Shell
cd /path/to/sessions; find -cmin +24 | xargs rm
# to try :
# find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment