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 are the different validators in asp.net?

0 Answers  


How to fetch a data from one table to another table in asp.net ?

0 Answers   MCN Solutions,


what is CTS?

3 Answers   PrimeLine,


What symbol specifies the beginning of a query string?

0 Answers  


You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,






What is the main use of Response.Output.Write()?

4 Answers   Siebel,


What is JIT and how is works ?

1 Answers   Patni,


how many databases and tables are uses in one project?

2 Answers  


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.

1 Answers   iFlex,


how to handle sql exceptions?

4 Answers   Marlabs, TCS,


WHAT IS OBJECT POOLING

2 Answers   Fidelity,


Categories