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 is server infrastructure & server components?
What is the use of worker process in asp.net?
What is data cache in sql server?
Is post back in asp.net?
Difference between Response.redirect vs server.transfer?
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?
How is mvc different from asp.net? : Asp.Net MVC
What is the difference between table and query?
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?
What is a postback url?
What is server side session management?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What is repository pattern in mvc.net? : asp.net mvc
Explain asp.net mvc request life cycle? : asp.net mvc
Can a master page have more than one contentplaceholder?