Bauke Scholtz wrote:
Even then, this isn't going to be crossbrowser compatible as at least Opera doesn't support it. Even then though, I won't use it. What if the user disabled Javascript? It can never be as reliable as you could do at the server side. Implementing the HttpSessionListener is the right approach, yes.
But when its possible to get the information close enough, why not get it. Otherwise, Listener is there in place.
Moreover, JavaScript disabled is not really the case to consider, IMHO, if not there as a requirement exclusively.