Originally posted by saurabh naik:
but problem is e.g suppose i run the program. and added items in cart by creating session and items are Bat, Ball and if simultaneously new user comes that is on another browser and if he adds new items to his shopping cart e.g stumps. but it displays bat,ball,stumps. problem is it takes the last session. i.e it does not create new session for him.
A new user, with a separate browser will always create a new session.
If this list is being shared among different users, I suspect that you're either storing it in context (aka application) scope or, more likely, you've got instance variables in your servlet or
JSP that point to this list.
Can you post the code that creates the list and binds it to scope?