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 does ascx stand for?
Explain how cookies work. Give an example of cookie abuse.
what is a .xap file? Explain with an example.
Explain the role of global.asax?
Is sql backend or frontend?
Explain security types in asp.net?
What are the various types of cookies in asp.net?
What is a SESSION and APPLICATION object?
Is viewstate enabled by default?
What is enableviewstate?
Why asp.net is better than php?
Where is asp.net view state stored?
What is autopost?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What is sql data source control in asp.net?