wrote:
> In a JSP/Servlet application, what exactly constitutes a user session?
> If I have an application open and I open a new browser window at one
> of the pages in the app would this create 2 sessions or still one?
> Basically, I was trying to find out if I need to synchronize access to
> any session variables in servlet code or that is not necessary.
That is up to the browser.
Let us assume sessions are maintained via cookies not URL
rewriting because cookies are by fat the most common.
When the session is established then the browser get a session
cookie from the server.
All requests coming with that session cookie belongs to that
session.
So it is up to the browser whether it will send the same
cookie for another window or not.
If I remember correct then IE and FF act differently regarding
this.
So be very conservative about what you assume.
Arne