Hi Team,
We have two jmix application :“FooApp” is running on port:8081
and “BarApp” is running on port 8082.
Open “FooApp” http://localhost:8081 on browser (Chrome) and login successful.
Open “BarApp” http://localhost:8082 on other tab on the same browser (Chrome) and login successful.
Return to "tab “FooApp”, click any menu open view, but require login again .
This is very uncomfortable for user experience.
How fix this issue? Please help us!
Hi, have you tried to use different hostnames for this applications?
you can add the following record to /etc/hosts file (on Windows it is located in c:\Windows\System32\Drivers\etc)
127.0.0.1 app1.localhost app2.localhost anyname.localhost
and get any number of virtual domain names that will have own cookie/session storages by opening as e.g. http://app1.localhost:8081 in browser
Aleksey Oblozhko recommendation is good if you need to do this a lot. When I need temporary access I use two different browsers like Chrome and Firefox. Most browsers will share cookies across tabs. This is more of a “browser problem” than a jmix problem.
2 Likes