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
How do I use response redirect?
What are server activated objects?
What is the difference between web.config and machine.config in ASP.NET?
How Session outproc in Sqlserver stored?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is query string with example?
What is base class of button control in .net?
What is an assembly? Explain its parts.
What is the extension of master page in asp.net?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Can you use c# without .net?
Explain difference between friend and protected friend?
Which asp.net objects encapsulate the state of the client and the browser?
What is the difference between web config and machine config files?
What is viewstate? In which event of the page life cycle, is the viewstate available?