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 what is an abstract class?
What is custom attribute? How to create?
What is application variable?
List some of the important session state modes of asp.net.
Which is better session or viewstate?
What r the asp.net list controls and difference between them?
How to use push notification?
What is the difference between session and viewstate?
How do we sort the data from a dataset?
What is gridview in asp.net?
Is asp.net a programming language or framework?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
Can you dynamically assign a Master Page?
What is a Cookie? Where is it used in ASP.NET?
What is difference between inproc and outproc?