Working on a Craft 2 site and trying to login with the admin account. We can login to the live site without any problems but when trying to login to a dev environment (using DDEV) the password isn't accepted. This is after doing a backup of the live database and importing it minutes later.
At least one other colleague has tried the same site on a different machine and it does the same.
A colleague created a new account on the live site, downloaded the DB then imported again. Cannot login with the new account (can on the live site).
I've cleared the logs and can see there's a lot of [system.web.CHttpSession] Failed to start session.
when clicking on the login button. I have the same PHP version as the live site.
Currently downloading the Craft/App folder from the live site to see if that does anything different
Craft folder from live site had no affect.
Deleted the contents of craft/storage
and now the logs show one warning
of [application] admin tried to log in unsuccessfully.
. This appears straight after an UPDATE
command on craft_users
. I can see sessions are being added to the database so I don't think it's an issue updating the database
Doesn't appear to be Craft 2 <-> DDEV issue. I've got another Craft 2 site running OK. Tried using that site's app folder which also didn't make a difference.
Update: Downgraded PHP to 5.6 and can now login BUT get logged out shortly after.