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
Explain asp.net application life cycle?
What is the default timeout for a cookie?
What is a 1x1 pixel?
What is http protocol and how it works?
Explain the components of web form in asp.net
What are the differences between primary foreign and unique keys?
What is form method?
Where is session cookies stored?
What is application variable?
What is the concepts of globalization and localization in .net?
What is boxing and unboxing in asp.net?
What is asp.net architecture?
Explain the difference between debug.write and trace.write? When should each be used?
What is the purpose of session management?
how to include timer or counting time to display next page in asp.net