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?


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

|improve this answer|||||
  • I'm afraid, this is not it. The value you're referring to is @ 2700. – Bernhard Prange Apr 17 '18 at 13:17
  • Also, this wouldn't explain that, upon a url change everything is working. – Bernhard Prange Apr 17 '18 at 13:17

Just clear browser cookies and all done.

|improve this answer|||||
  • This should be the accepted answer. – Black Feb 4 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.

|improve this answer|||||
  • Solution: Delete cookies – Black Feb 4 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..

|improve this answer|||||
  • 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. – Bernhard Prange Apr 18 '18 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.

|improve this answer|||||

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.