Re: concept of session in J2EE
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Sun, 30 Nov 2008 13:32:47 -0500
vk02720@xxxxxxxxx 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.
This depends on how the browser does things. User sessions are maintained through either a cookie on the client system whose contents are enclosed with each HTTP request, or a URL parameter likewise included in each HTTP request. A second browser instance will not "know" about the cookie or URL parameter, respectively, and will not send it, thus it will not participate in the first browser instance's session(s).
--
Lew
.
- References:
- concept of session in J2EE
- From: vk02720
- concept of session in J2EE
- Prev by Date: Re: concept of session in J2EE
- Next by Date: Re: concept of session in J2EE
- Previous by thread: Re: concept of session in J2EE
- Next by thread: America's Most Affordable Online Education for BUSINESS/IT!
- Index(es):
Relevant Pages
|