Working with two instances of the same app at the same time

I need to open two instances of the same grid app on two different tabs of the same browser.
I cannot manage how to keep separate the session of the first instance from the the session of the second instance.
Any help ?

Hi, this code can help you