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

Explain authentication levels in .net ?

3 Answers  


What is the full form of asp.net?

0 Answers  


What is the difference between a.Equals(b) and a == b?

4 Answers  


what is view stat how it is use ?

2 Answers   Amazon,


How to rename a table using sql queries?

0 Answers  






Describe and In Process Vs Out of Process component. Which is faster?

2 Answers   Syntax Softtech,


What is semantic gap?

0 Answers   MCN Solutions,


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other?

26 Answers   Syntax Softtech,


What is a server farm in iis?

0 Answers  


Features in ASP.NET?

2 Answers   Microsoft,


Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one

1 Answers  


Categories