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 inheritance and an how it be used, example with an example?
where can i gather the materials for MCP certification
Where is cookie used in asp.net?
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
What is the page life cycle in asp.net?
What is viewstate in asp net with example?
What is ashx file in asp.net?
How many types of Cookies are available in ASP.NET?
Can I tap into other windows livetm services?
Why is the standalone environment only useful during the development process?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
How does asp.net page work?
Explain an object, class and method.
Which method do you use to kill explicitly a users session?
Explain how do you deploy your asp.net application?