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 manifest in .net framework?
Which namespace is used by ado.net?
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
Can user control be stored in library?
What is the purpose of using MVC programming pattern in ASP.NET?
What is asp.net architecture?
What is dynamic web page with example?
Explain the difference between array and linkedlist?
To wrap up a call to a Web service the standard used is..?
what is meant by sitemapnode ?
Where do we store our connection string in asp.net application?
What are HTTP handlers in ASP.NET?
How do you deploy your asp.net application?
Explain one critical mapping?
Explain code snippet to register exception filters from controller?