Hi, In a distributed web application(that participates in session management), if user-A(who uses session) sends a request, the load blancing server decides to which server the request has to go, say if it is server-A and VM1, then the server-A makes a new session object with unique ID and sends response to the user through cookie.
Next time the user-A makes another request, this time if the load balancing server sends the request to another server say server-B and VM2, then server-B sees the session id and knows this particular session object is present in Server-A and VM1. Then migration happens.
My question is how the server-B knows that this particular session object is present in server-A? Thankyou.
I never would have not expected if someone had already posted the question, I have been wondering and about to post!
The way I satisfied whilst going through this topic was load balancing server would maintain a list of session ids mapped to servers. So, whenever a second request comes through, the load balancing server tells server B that this session id already present in server A, then server B makes it to the session to migrate.
I may not be giving right information here but for the exam I have to focus on many more other things than wasting time, so I have got over with these kind of obscure things.
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)