Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BoSkiv's avatar

Credentials mismatch after moving to new server

Some users got a credentials mismatch when try to login after I moved to a new server with backup/restore. What do I miss for? Some users is ok. If I register a new user with the same password, the hash in the database is different. I tried to set the same APP_KEY and config:clear, cache:clear but it does not help.

0 likes
5 replies
jlrdw's avatar

Are you on a load balancer, if so are you using database session and not file.

1 like
BoSkiv's avatar

Thanks for a hint, but there is one new server behind a balancer. But I will check that 'session' way

martinbean's avatar

If I register a new user with the same password, the hash in the database is different.

@boskiv Yes. Hashing the same string twice will result in two different hash values. Hashes are created using a salt.

there is one new server behind a balancer.

Then what’s the point of the load balancer? There’s no point in it if it’s just going to forward traffic to the same single server for every request.

martinbean's avatar

@BoSkiv That’s not what a load balancer is for. A load balancer is to, well, balance loads by distributing requests to one of multiple servers so one single server isn’t overwhelmed.

1 like

Please or to participate in this conversation.