Hi, Vishwanath. I think what Swapnel asking is, can a web application create multiple sessions? If yes, how we can maintain sessions?
We have 3 methods to create session objects, request.getSession(), request.getSession(true)(these two are programatically same) and request.getSession(false). With any of these methods, we cann't create multiple session objects.
Suppose, if a
servlet creates multiple session objects, they must have different sessionid's. In the response header, multiple cookie entries present. Again in request header multiple cookie entries present. Can you please tell me, in what situation's we need multiple session objects? Thankyou.
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6