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



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

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

3. What goals do you have in your career?

0 Answers   Swatz Oils,


Difference between .NET components and COM components?

2 Answers   Microsoft,


Where do you store the information about the user?s locale?

1 Answers   Visual Soft,


How do you perform validations?

3 Answers   Microsoft,


what is shared assembly asp net

1 Answers   Fidelity,






page life cycle of asp.net.

4 Answers  


suppose we have two object;obj1 and obj2 can we assign obj2 to one1; and if yes; then after assigning suppose we delete obj2 then obj1 will retain obj2 value or not.

3 Answers  


what is wpf and wcf in .net explain with an example?

2 Answers  


how to convert from sql2000 numeric to int in asp.net with sqlparameter?

1 Answers  


What are the types of authentications in ASP.NET?

2 Answers   Accenture,


How many types of sessions are there?

2 Answers  


Why do we use Option Explicit?

2 Answers   Microsoft,






Categories