Does every browser open a new HTTPSession
Posted
by
user496934
on Stack Overflow
See other posts from Stack Overflow
or by user496934
Published on 2011-02-23T15:13:05Z
Indexed on
2011/02/23
15:25 UTC
Read the original article
Hit count: 179
I am working on a webbased application which has JSP and servlets. In my application, I am binding some objects to sessions like the following code --
HttpSession session = p_req.getSession();
session.setAttribute(DOWNLOAD_With_WARNINGS, downloadMap);
Later I am retrieving them using session.getAttribute. I would like to know if every time I open a new browser does it open a new HTTP session. Because , if I do a setAttribute
with some value in one browser instance, that change is visible when I do a getAttribute
using the other browser instance.
© Stack Overflow or respective owner