I use Magento 2.2.

Changed session destination from file to Redis.

Is there a command to save back to a file?

1 Answer 1


You can change the configuration either in env.php or cmd

Can change session configuration in app/etc/env.php

'session' => 
  array (
    'save' => 'files',

Using Command Line

php bin/magento setup:config:set --session-save=files

Hope it helps you.

Your Answer

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

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