Skip to content

Instantly share code, notes, and snippets.

@jonathanselander
Created April 11, 2014 18:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanselander/10488997 to your computer and use it in GitHub Desktop.
Save jonathanselander/10488997 to your computer and use it in GitHub Desktop.
Clean the Magento core_session table
DELETE FROM core_session WHERE session_expires < unix_timestamp()
@seansan
Copy link

seansan commented Sep 8, 2017

add a delta date? so anything older than .... 30 days os

https://stackoverflow.com/questions/5504395/insert-timestamp-into-a-database-7-days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment