web farm .. how does session shuld be stored... if inproc
used? does the session
persists from one server to other.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is server infrastructure & server components?

751


What is the use of worker process in asp.net?

508


What is data cache in sql server?

566


Is post back in asp.net?

507


Difference between Response.redirect vs server.transfer?

564






i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1483


How is mvc different from asp.net? : Asp.Net MVC

516


What is the difference between table and query?

526


Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?

478


What is a postback url?

478


What is server side session management?

507


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

546


What is repository pattern in mvc.net? : asp.net mvc

506


Explain asp.net mvc request life cycle? : asp.net mvc

467


Can a master page have more than one contentplaceholder?

491