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 ?
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?
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