[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
HttpSessionListenerDelegator - when called  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

(...question via mail - answered through forum...)

HttpSessionListenerDelegator is called when the session is closed (e.g. timeout container).

But it doesn't get called when the tab is closed or when the browser is closed/killed, correct? You don't get that. Is this correct?

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

When using session mode "URL":

Then one browser tab is associated with one http-session. In this case the listener is called when closing the tab.

When using session mode "COOKIE":

Then several browser tabs share the same http session - each browser tab belongs to one internal dialog session. The dialog session is closed when closing the tab. The http-session remains. The http-session is closed on time out. (Why is it not closed "with the last brower tab"? Because the jsessionid-cookie remains on client side - so any new tab would again reference the http-session).


And just as side info: please always use the "Dialog Session" if you want to refer to the "session of the tab". The "Dialog Session" is an abstraction - which internally maps to the http-session in "URL"-tracking scenarios and which internall maps the the internal dialog session on "COOKIE"-tracking scenarios. The dialog session provides corresponding listeners for getting notified when it is closed.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team