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 are the steps involved to fill a dataset?

784


What are the elements of a website?

734


Are xaml file compiled or built on runtime?

741


What are server side controls?

750


What is asp.net with mvc? : Asp.Net MVC

732


What is recordset asp?

748


How is it possible for .NET to support many languages?

501


How does the service stream content?

785


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

792


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2266


What is the purpose of App_Code folder in ASP.NET? Why we this?

881


What are validators and list some validators of asp.net?

745


How is the asp.net mvc architecture different from others? : asp.net mvc

722


Can you explain the basic use of dataview?

842


What is the viewstate in asp.net?

778