How can I have a different httpSession object for:1. Each browser window(s) of same instance of browser
2. Each browser instance
Most session management is done through cookies. If there are two seperate windows running the same browser (e.g. Netscape), they will use the session. That is because both windows will look in the same directory for the cookie they are using to maintain state. If each window was to have their own session, there would be know way to determine which session belongs to which window.
However, if there are two windows with two different browser applications (e.g. Netscape and IE), they will each use different sessions because they will use different cookies.