0

Magento 1.9 var/session folder is full 2.5 million files are there, so the site is not working, if I remove some files from the session folder, the site is working for a few hrs, but after it was stuck, what is the alternate solution for this, rather than remove the session folders file?

1 Answer 1

0

Setup a cron job to delete session files older than 7 days

find /magento/var/session/sess* -type f -ctime +7 -exec rm -- {} \;
3
  • i hvae find other way like changes in loca.xml file Change: <session_save>file</session_save> To: <session_save>db</session_save>
    – rocky9310
    Commented Jan 6, 2022 at 4:16
  • is this are ok or not?
    – rocky9310
    Commented Jan 6, 2022 at 4:17
  • magento.stackexchange.com/questions/93495/…
    – paj
    Commented Jan 6, 2022 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.