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
What are the steps involved to fill a dataset?
What are the elements of a website?
Are xaml file compiled or built on runtime?
What are server side controls?
What is asp.net with mvc? : Asp.Net MVC
What is recordset asp?
How is it possible for .NET to support many languages?
How does the service stream content?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
What is the purpose of App_Code folder in ASP.NET? Why we this?
What are validators and list some validators of asp.net?
How is the asp.net mvc architecture different from others? : asp.net mvc
Can you explain the basic use of dataview?
What is the viewstate in asp.net?