0
  1. Login as a customer in front end side.
  2. Then disabled customer from admin panel.
  3. Go the front end side and refresh the page,it should be logout automatically.

Please update me if anyone have solution for this?

1 Answer 1

0

Disabling a customer from admin only takes effect when the customer next tries to login.

To automatically log the customer out you would have to delete the customer session data on the server, the admin disable customer function cannot do this.

2
  • Yes I understand but based on disabled flagged we can identify if customer idsenable/disabled then we need to delete customer session ? Right ? So for that we have any plugin or observer to achieve this? Commented Feb 26, 2021 at 8:26
  • This answer might help you magento.stackexchange.com/questions/192492/…
    – paj
    Commented Feb 26, 2021 at 8:34

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.