2

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!

3

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.

| improve this answer | |
3

To get folder to clear, run the command: php -r "var_dump(ini_get('session.save_path'));" And then delete this folder.

| improve this answer | |
  • It is where php stores session, but I am looking for magento sessions – Kyrylo Romantsov Sep 21 '17 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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