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
Why SessionID changes in every request in asp.net?
What is the difference between page-level caching and fragment caching?
What is session id in web application?
Is it possible to migrate visual interdev design-time controls to asp.net?
What is ipostback?
What is the concept of view state in asp.net?
What are the modes of updation in an updatepanel?
Is asp.net mvc front end or backend? : Asp.Net MVC
What is meant by ispostback in asp net?
What threading model used in asp and asp.net?
what is command line compiler.what are the steps and how it is related to debugging.
Do you know using sql cache invalidation?
What is the difference between “Web.config” and “Machine.Config”?
what is loosely coupled solution? How it can be used?
What is the difference between asp.net and mvc?