Hi, I am confused with the HttpSession object. It is sent from the client through HttpServletRequest. But how does the servlet identify a HttpSession object to track the user session? In other words, how does servlet know that the HttpSession object is from a particular client in order to do the tracking?
when you create an httpsession object than
a "unique id" is sent to client in form of
cookie or by enoding url..
This Unique number is used to indentify the user/client..
Internally the app. server maintains a mapping of
unique id to the objects put in that session(ie unique id)..