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

When an ASP.NET server control is added to a web form, Visual Studio .NET adds one item to the class for the form. What item is added? a) The event registration. b) A protected class member for the control. c) A default event handler for the click event. d) A default class that inherits from the control?s base class.

3 Answers   TCS, Syntax Softtech,


Should user input data validation occur server-side or client-side? Why?

3 Answers   NIC,


Which color scheme in a Repeater control can you provide alternatively?

1 Answers  


asp.net page is a object or not?

5 Answers  


What are the different types of Session state management options available with ASP.NET?

1 Answers  






What is difference between machine.config and Web.Config?

4 Answers   Accenture, Le Logiciel,


What is the relationship between IIS and ASP.NET in the generation of dynamic Web sites?

1 Answers  


Why Global.asax is used?

7 Answers   Perot Systems,


What are clr?cts?cls?

4 Answers   HCL, Microsoft, e4e, Tata Communications,


Features of a dataset ?

3 Answers   Accenture,


How can you provide an alternating color scheme in a Repeater control?

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  






Categories