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


Please Help Members By Posting Answers For Below Questions

Explain asp.net application life cycle?

556


What is the default timeout for a cookie?

564


What is a 1x1 pixel?

532


What is http protocol and how it works?

536


Explain the components of web form in asp.net

549






What are the differences between primary foreign and unique keys?

525


What is form method?

499


Where is session cookies stored?

526


What is application variable?

525


What is the concepts of globalization and localization in .net?

533


What is boxing and unboxing in asp.net?

670


What is asp.net architecture?

534


Explain the difference between debug.write and trace.write? When should each be used?

564


What is the purpose of session management?

516


how to include timer or counting time to display next page in asp.net

1607