What are Sticky Sessions?

Answers were Sorted based on User's Feedback



What are Sticky Sessions?..

Answer / 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

What are Sticky Sessions?..

Answer / anup

I dont know

Is This Answer Correct ?    11 Yes 9 No

Post New Answer

More ASP.NET Interview Questions

What is the caspol.exe tool used for?

0 Answers  


How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?

0 Answers  


What is enableviewstate?

0 Answers  


Define authentication and authorization.

0 Answers  


What is the extension of master page in asp.net?

0 Answers  






In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

0 Answers   Quest,


Explain model, view and controller represent in an mvc application? : asp.net mvc

0 Answers  


What is the main difference between a static page and a dynamic page?

2 Answers  


accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) { TextBox t2 = new TextBox(); t2.ID = "adf" + i; PlaceHolder1.Controls.Add(t2); } accessing data entered in the above created controls.

1 Answers  


Explain the advantages of caching?

0 Answers  


How does a content page different from a master page?

0 Answers   MindCracker,


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


Categories