Thanks,<br />Honey Joshi.
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Originally posted by David O'Meara:
The session object on the server is associated with a single user via the session id passed between them, but there is no guarantee that the user cannot have multiple browser windows using the same session token. You just can't enforce that. Therefore if the user opens the same page in two windows and submits both with same data at the same time, yu may get values from query one, query two, or a mixture of both depending on your treatment of the session object.
Dave
Thanks,<br />Honey Joshi.
Originally posted by David O'Meara:
Not necessarily, it is possible to open a new browser window that has the same session id. Using IE, if you use 'control-N' the new window shares the session id. If however you use the icon to open a new browser, it will get a new session id.
Also keep in mind that browsers are not the only way to access web apps. We could also be talking about a client application that logs in and fires multiple requests on separate threads.
Thanks,<br />Honey Joshi.
Originally posted by Yilmaz Mete:
david, another possibility of getting the same session is also framed pages being viewed on any browser.
Not at the very first request, but later they will have the same session id and conseq. the same session.
Thanks,<br />Honey Joshi.
Originally posted by Honey Joshi:
Now understood the concept of Session is not thread safe if the user press ctrl+N then the session is not thread safe otherwise it is thread safe. isn't it.
Thanks,<br />Honey Joshi.
Originally posted by Adeel Ansari:
It was just an example, though. You can take it for sure for IE. And do you remember the other clients which fire request on multiple threads.
Have you ever seen the image, on the registration page or login page or elsewhere, which you have to read and enter the alphabets on image into a text field. That image is to prevent those kind of client's requests. By the way, it might get off-topic. Just remember session attributes are not thread-safe.
Thanks,<br />Honey Joshi.
Originally posted by Honey Joshi:
Couldn't understand the description please explain it again.![]()
She'll be back. I'm just gonna wait here. With this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|