2

I have installed magento 2.4 on windows 10 and wampserver. It is installed now. I can't login to backend. I does not through any error notification either. enter image description here

While front end login and create customer is also not working. It show invalid form key always. enter image description here

Sanaullah Ahmad
  • 587
  • 1
  • 5
  • 23

2 Answers2

2

I Found the issue! In Magento 2.4.5-p1 it seems that a value of "0" for "Max Session Size in Admin" breaks it. In normal behaviour "0" should disable the size. I set mine now to "2560000" cause the default setting of "256000" isn't working for us (too low) and that solved this issue for now.

You can set it to this value through CLI (flush cache after):

bin/magento config:set system/security/max_session_size_admin 2560000
Baharuni Asif
  • 1,217
  • 9
  • 26
1

I checked deploy mode with this command

php bin/magento deploy:mode:show

Deployment mode was "default". I changed the deployment mode from default to developer and its start working.

 bin/magento deploy:mode:set developer
Sanaullah Ahmad
  • 587
  • 1
  • 5
  • 23