Categories
Articles

Tab based browser – session handling – Part II

In my previous article, I talked about the conceptual implementation of how one can make sure the application will work in tab based browsers. While the thoughtprocess is more at abstract level and is not attached with any real artifacts, I thought of giving it a try to check, how feasible is to implement the solution. After spending couple of hours (mostly in writing testing code), I could come up with a sample which works in any tab based browsers.
Though the example isn’t developed considering all the pitfalls it may face, it will give one a headstart to develop solution on their own. The solution doesn’t use any third party frameworks and purely relies on what is offerred in JEE. (I used Tomcat 6.0, Eclipse 3.7 and Java 1.6)

Categories
Articles

Tab based browser – session handling

Tab based browsers seems to be a common feature these days and is definitely quite handy. But for most of the web developers, it’s quite annoying feature when it comes to building Applications that makes use of sessions. Problems of data getting overridden when users tend to juggle between the tabs, causes lot of data inconsistencies. Having seen these problems, I tried doing some googling to check if there is any solution available to tackle it. While there was no definite solution suggested by anyone, I stumbled upon one of the link on nabble.

http://old.nabble.com/Tabbed-browsers-sharing-session—work-around.-td29876222.html

While the approach discussed in the above post, looks quite interesting, it somewhat seems to be coupled with Tomcat server. After spending couple of hours, I thought of an extended version of above approach.