Originally posted by Steve Dyke:
I need help to make sure I understand Web App development.
My web app sets on our server.
User 1 accesses the app index.jsp through url address.
The jsp requests a servlet which does session.setAttribute("user","Steve")
now if
User 2 accesses the app index.jsp through url address.
The jsp requests a servlet which does session.setAttribute("user","John")
Does this affect User 1 at all? Or are session attributes unique to that particular users instance of the web app?
Qussay NAJJAR
Originally posted by Steve Dyke:
I want to clarify the post 86207 that you just answered with your post. The question in post 86207 is concerning one user making two requests with in the same app.
Originally posted by Ben Souther:
You should really take a few minutes to read the section in the spec on sessions (10 to 15 minute read).
The short answer is no.
Each user has one session object on the server at a time.
As long as it doesn't expire from lack of use, they don't close their browser, or execute code that invalidates it, they will keep that session indefinately, no matter how many requests they make and how many different pages, servlets, whatever they hit within that web application.
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|