InterviewSolution
| 1. |
How It Is Done? |
|
Answer» The machine is associated with a session as soon as the session is created. All the REQUESTS in a particular session are ALWAYS redirected to the associated machine. This ensures the USER data is only at one machine and load is also shared. In Java world, this is typically done by using jsessionid cookie. The cookie is sent to the client for the first request and every SUBSEQUENT request by client must be containing that same cookie to IDENTIFY the session. The machine is associated with a session as soon as the session is created. All the requests in a particular session are always redirected to the associated machine. This ensures the user data is only at one machine and load is also shared. In Java world, this is typically done by using jsessionid cookie. The cookie is sent to the client for the first request and every subsequent request by client must be containing that same cookie to identify the session. |
|