When I switch the store to a specific domain https:// example.com (secure & unsecure), I get the error "Visible Section not found" when trying to log into the backend.

The funny thing: as soon as I change the url to something else say www.example.com the error disappears and I am able to login fine.

I was testing a lot (Enviroment Varibles, Cache flush, recompiling)

Can anybody explain this to me?

5 Answers 5


This error is because of Admin session time is over.

To avoid this error You can increase the session time of Admin user. With the following step...

Stores > Configuration > Advance > Admin > security

Change the value of "Admin Session Lifetime (seconds)" field

  • I'm afraid, this is not it. The value you're referring to is @ 2700. Commented Apr 17, 2018 at 13:17
  • Also, this wouldn't explain that, upon a url change everything is working. Commented Apr 17, 2018 at 13:17

Just clear browser cookies and all done.

  • This should be the accepted answer.
    – Black
    Commented Feb 4, 2020 at 14:01

Basically the "Visible Section not found" error means that the session didn't work in any way.

I had the trouble now twice. One time it was a .example.com set as the cookie domain while the domain in use was ´example.com´ the second time it was due to a not available compression format within the redis config.

  • Solution: Delete cookies
    – Black
    Commented Feb 4, 2020 at 14:01

After changing url: please logout and run these commands from SSH as follows:

1. php bin/magento cache:flush
2. php bin/magento indexer:reindex

3. php bin/magento setup:upgrade
4. php bin/magento setup:di:compile 
5. php bin/magento setup:static-content:deploy

then Login to admin and check..

  • Done that a LOT. It doesn't help. I can change to ANY domain but the one specific. www. is working .domain is not working. Commented Apr 18, 2018 at 9:41

Magento Community Ver. 2.2.3

Struggled a lot. I tried to remove caches, pub/static/ files, and sessions.

But the solution was very easy. Go to magento_root/app/etc/ then open file env.php

Change below frontName xxxxxx with what you want

return array ( 'backend' => array ( 'frontName' => 'xxxxxx', ),

It worked.

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.