Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are Sticky Sessions?

Answer Posted / venky

Sticky sessions work with the load balancer to improve
efficiency of Persistent Sessions in a clustered configuration.

In a clustered configuration, the load balancer sends
requests to multiple backend Resin servers. Each session has
an owning Resin server and a backup Resin server. The load
balancer will send a session's request to the owning server
or to the backup if the owning server is not available. The
association of a session with a backend server is called
"sticky sessions".

Because the load balancing occurs before any interpretation
of the Virtual Host or Web Application, it's a <server>
configuration variable, with the <session-cookie> directive.

Sticky sessions encodes the session cookie with the owning
server. The encoding using a simple prefix value. 'a' refers
to the first server in the cluster, 'b' refers to the second
server, ..., 'z' refers to the 26th server.

So the session cookie JSESSIONID=cnn8x02mPph_4sOKlbn would
go to the third server, 192.168.0.12 in the following
configuration

<cluster>
<srun id="a" host="192.168.0.10" port="6802"/>
<srun id="b" host="192.168.0.11" port="6803"/>
<srun id="c" host="192.168.0.12" port="6803"/>
</cluster>

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need asp.net?

981


Differences between “dataset” and “datareader”.

987


Name the namespace which is used by ado.net?

916


What is the use of session in web application?

909


What are the 3 types of web?

871


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

990


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

2422


What is different in .net 1.1 and .net 2.0?

967


What are the security types in asp.net?

1003


What are the media types of http requests and response?

950


What does asp stand for in asp.net?

938


Can we use a static function with a non-static variable?

931


How to Separate background image and front image from original picture....

922


Explain asp.net page life cycle?

1040


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

1890