In magento 1 I used to clear session deleting var/session
dir.
But how to make it in Magento 2?
env.php
fragment:
'session' =>
array (
'save' => 'files',
)
Any help will be much appreciated!
In magento 1 I used to clear session deleting var/session
dir.
But how to make it in Magento 2?
env.php
fragment:
'session' =>
array (
'save' => 'files',
)
Any help will be much appreciated!
I've found solution myself.
I've changed my sessions to save to database like this:
'session' =>
array (
'save' => 'db',
),
And then I can clear session just truncationg the session
table.
To get folder to clear, run the command:
php -r "var_dump(ini_get('session.save_path'));"
And then delete this folder.