0

Sometimes I'm login as one user and in some pages I see the name of other user that I've never used to login in that computer.

this happens in different pages, and don't happens always.

Any idea of what can generate this issue ?

3
  • Jacr did you solve this? And how? Commented May 7, 2019 at 18:52
  • Yes, this is related to cache, I have removed some blocks from cache
    – jacr1614
    Commented May 9, 2019 at 14:31
  • What cache? Full page caching or redis? And what blocks did you remove and how? Commented May 10, 2019 at 10:36

2 Answers 2

0

1) If you are using some Full page cache, disable it or set it to NO

2) Clear your Magento sessions, see here.

3) Clear all Magento and Browser cache.

0

In the header.phtml file you should use this to print the user name

<?php echo $this->getChildHtml('welcome') ?>

Then, you can override the block 'Mage_Page_Block_Html_Welcome' if you wanna customize your message.

this happens when you use "Full Page Cache" because by default, magento exclude some blocks of the full page cache, and the block 'welcome' is one of they. if you are using customization code and message, the user name will be cached too, and other users will see different user names in this section.

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.