Sometimes, we encounter such a problem: we need to use different login system as user account, how to solve it?
First with an account you can log out after use, and then log in another account. Or, you can install multiple browsers, a browser to log in a account to log in another browser to another account. Because a browser at the same time under the same domain only allows one account login.
In the development of machines you may install multiple browser, such as ie, firefox, chrome, etc., and then each browser to log on to different accounts multiple users to log in, but this is too much trouble.
Now, we look at the other implementations.
Open the / etc / hosts, you can give this machine a few more names. For example: 127.0.0.1 localhost abcd, so that we can, through some of the following url to access the:
http://127.0.0.1:3000 a user login
http://localhost:3000 b User Login
http://a:3000 c User Login
http://b:3000 d Login
http://c:3000 e User Login
http://d:3000 f User Login
You can just open a browser and open a few tab, visit the above were a few url, and then log in different users.
This program, you do not have to install so many browser. Of course, this not only can be used for local testing, you can use to test your website. For example: Do you have a website, domain name is http://demo.project.com, you can also modify / etc / hosts as follows: 184.108.40.206 http://demo.project.com aa bb cc dd
Enabling multiple users to log.