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 Runtime callable wrapper?

2 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


is it possible to set more than web.config file for an ASP.net APPLICATION?can it run?how is it possible

3 Answers  


What is an Interface and What is an Abstract Class?

3 Answers  


What Is ASPNET_WP.exe? What Is The Use Of It? In Which Place Inproc Session Stored ? Explain Session State ?

2 Answers   Phoenix Technologies,






what are webservices?In which circumstances we can go for webservices?

3 Answers   Microsoft,


view state data is stored in which format?

15 Answers   Mind Tree, Pratham Software,


Is object a value type or referenced type?

2 Answers  


When maintaining session through Sql server, what is the impact of Read and Write operation on Session objects? will performance degrade..

3 Answers   Allsec Technologies,


COM+ Used ________________ Isolation Level

0 Answers   CTS,


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

3 Answers   NIC,


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  






Categories