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 event handlers can I include in Global.asax ?

1 Answers  


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

0 Answers   Siebel,


What is the syntax for datagrid and specifying columns?

0 Answers   Microsoft, SF,


Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?

1 Answers  


what is SQL cache Invalidation?

1 Answers  






Give an example appropriate use forweb service as opposed to a non-serviced .NET component

1 Answers   Siebel,


How do you retrieve information from web.config ?

5 Answers   MMTS,


When should we use abtract class and Interface Class?Give an Example

4 Answers   Accenture, Cap Gemini, L&T, RM,


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

0 Answers  


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

0 Answers  


what is diffrance between response.write & response.output.write

4 Answers   CTS,


Which class is used to send an email message from an ASP.NET Web page?

0 Answers   Sans Pareil IT Services,


Categories