session lifecycle

Hello everybody,I'm what will happen on the session object when a user do somthing like these:He closeed his browser.He just changed the url in his address bar and hit enter.
[203 byte] By [purpureleaf] at [2007-9-26 1:14:35]
# 1
The session will time out if the user does either of those things. The default is usually 30 minutes. You can set this to a lower time in your xml configuration files.Rick
rsal at 2007-6-29 0:32:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Do your mean that the session will immediately time out no matter how long is the time out period(default is 30)?
purpureleaf at 2007-6-29 0:32:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

The session will time out only after the time out period has expired.

Think logically and the solution will become clear.....

Whenever u do any of the mentioned actions, there is no communication with the client and the server. How on earth will the server know that the client is not there any more ?

shubhrajit_c at 2007-6-29 0:32:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Maybe I haven't clarified my intentions.

The problem is:

When a user does this:

1.closes his brower and opens a new window

or

2.change his URL

(the sesion will still exist in server),can he still surfs in the same session?That is,will the brower and the server create a new session for him?

purpureleaf at 2007-6-29 0:32:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Case 1:When the user changes the URL to visit another page and then comes back to the old page using the same browser window. If the session still exists on the server, then the same session will be used.

Case 2: User closes ther browser window

This is browser dependent.

Normally, for IE it will start a new session, except...

if the new browser window that is used is derived from the original browser window...For example you are visiting java.sun.com, hit Control-N to open a new window, browse yahoo through the new window, close java.sun.com window, again go to java.sun.com through the yahoo window, then only old session will be used.

In NS, unless you close all browser windows the session id will esist and if you go back the same session id will be used.

Shubhrajit

shubhrajit_c at 2007-6-29 0:32:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...