web farm .. how does session shuld be stored... if inproc
used? does the session
persists from one server to other.




Answers were Sorted based on User's Feedback



web farm .. how does session shuld be stored... if inproc used? does the session persists from on..

Answer / mandar

In case of web farm, we can not have in proc session state.
Session can not be persist from one server to another. we
have to use the state server or database for session storage

Is This Answer Correct ?    16 Yes 2 No

web farm .. how does session shuld be stored... if inproc used? does the session persists from on..

Answer / hozefa

There are 5 session modes as below,

void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Session.Mode = SessionStateMode.InProc;
Session.Mode = SessionStateMode.SQLServer;
Session.Mode = SessionStateMode.StateServer;
Session.Mode = SessionStateMode.Custom;
Session.Mode = SessionStateMode.Off;

}

These 2 session modes should be used :

Session.Mode = SessionStateMode.SQLServer;
Session.Mode = SessionStateMode.StateServer;

Is This Answer Correct ?    12 Yes 0 No

Post New Answer




More ASP.NET Interview Questions

What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it?

1 Answers   Syntax Softtech,


Have you used microsoft dataaccess blocks and Exception blocks?

1 Answers   Microsoft,


hi i am varinder. i am very eager to learn ASP.net in C#. i am beginer to it. i have refer some books but i found it tuff to understand. their language is tuff. So please tell me the best site or best book to learn ASP.net in C#. i will be very thankful. Varinder

1 Answers  


Types of values mode can hold session state in Web.Config?

6 Answers   Accenture,


How do you define authentication in Web.Config?

2 Answers   IBM, Accenture,






How many web.config a application can have ?

6 Answers   Manhattan, Vertex, Keane India Ltd,


Singleton Design pattern?How do you achieve it?

3 Answers   Microsoft,


What is Serilazation? how many type of serilazation are their?

3 Answers  


hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


What methods are fired during the page load?

1 Answers  


Types of store procedure in Sqlserver?

3 Answers  


How we can kill our Session in web farm where there is no any sticky server .And user can not Logout bcoz of that.

3 Answers  






Categories