Accessing different nodes locally on different ports

I’ve created two different Keycloak instances on my local machine and configured the standalone-ha.xml file with the same database. The first instance runs on port 8080 and the second on 8180. When I log in to localhost:8080 and try to open localhost:8180 login page. localhost:8080 logs out automatically. I was expecting that when I go to localhost:8180 to find myself already logged in. So what am I missing here? I think there is something that I don’t understand correctly about Standalone-HA.

It lools like they are using domain cookies, so they are overwriting own cookies each other. Use localhost for access to first one and 127.0.0.1 for access to second one.