I developed a chat application with rails. I opened two windows in my browser and tried to check the operation, but it didn't work. Specifically, I logged in with user A in one window and user B in the other window, and tried to check whether the comments posted by user A were reflected in user B's window. However, when I logged in as user A in one window and then logged in as user B in the other window, both windows were logged in as user B, and I couldn't do what I wanted to do.
By launching one in a normal window and the other in secret mode, I was able to do what I wanted without the windows interfering with each other.
Recommended Posts