top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain the Implementation of Session Affinity ?

+3 votes
356 views

Explain.

posted May 6, 2014 by Basabdatta Mukherjee

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

Most servers use the term "Session Affinity" to indicate that within a cluster of servers, requests from the same client alway get routed back to the same server. This eliminates the need to replicate session data like the HttpSession or Stateful Session Beans.

Implementations vary, but is usually base on some kind of routing scheme that identifies the client by IP address or a browser cookie.

answer May 7, 2014 by Vishal
–1 vote

Sessions consist of several transmissions in each direction between the client (browser) and the server. Session affinity means that the load balancer keeps track of which server received the initial transmission from a given browser, and that it will then send any subsequent requests from that browser to the same server.

This is necessary with Confluence clustering, in particular, because sessions are not shared across cluster nodes. If you log into one node and then send a request to another, the other node will send you the login screen because it doesn't recognize your session cookie.

answer May 7, 2014 by Mohammad
Similar Questions
+4 votes

We want to implement GCM for the QueryHome on Chrome Browser, but does not have any clue. Any pointer and sample code would be helpful. Your help will help us to reach-out more and more people.

+2 votes

Is there a way I can clear my session data from the browser? This is for debugging when I change something. Currently no matter what I do short of exiting the browser, my session data is always retained. This makes testing very cumbersome. I am using PHP/MySQL for development.

+1 vote

I am running a web server not at standard port 80 then in this case how it can accessed by outsider/visitor without knowing the port number ?

...