Application for each tab


is it possible to make a new application instance for each tab in a browser?

My application needs to support multiple tabs. It also connects to a self-written applicationserver. So it would be usefull if the applicationserver knows when a tab is closed to clean up all connections.

I tried several things, but when I hit the back button after navigating away from my application, it comes back and causes several exceptions because of lost connections.



you might want to implement something similar to what is mentioned in
this blog post
. Do note that with just that approach, the application instances stay alive as long as the session is alive even if you close the tabs/windows that initiated the application instance. Luckily, there are multiple ways of overcoming that issue too.



a very interesting post. I will give it a try.