Skip to content

Instantly share code, notes, and snippets.

@DaWe35
Last active November 14, 2020 11:58
Show Gist options
  • Save DaWe35/b0d5a21b7a153b1a6dd441c68a95e40e to your computer and use it in GitHub Desktop.
Save DaWe35/b0d5a21b7a153b1a6dd441c68a95e40e to your computer and use it in GitHub Desktop.
Remove old PHP sessions from /tmp
find /tmp -name 'sess_*' -mtime +5 -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment