0
  • Login to SSH and run this command
    d /var/www/html/var/session/
    find . -name 'sess*' -mtime +7 -exec rm {} \;

    where “var/session/” is your Magento installation directory

  • Use this as cron job in your cron file- First open cron file
    crontab -e

    After that use this cron job command

    * * * * *  find  /var/www/html/var/session/* -mtime +7 -exec rm -f {} \;

Jagdish Sarma Asked question June 25, 2021
Add a Comment