What three Session State providers are available in ASP.NET 1.1? What are the pros and cons of each ?

Answer Posted / madhuri kumari

ASP.NET provides three distinct ways to store session data for your application: in-process session state, out-of-process session state as a Windows service, and out-of-process session state in a SQL Server database. Each has it advantages.
1.In-process session-state mode
Limitations:
* When using the in-process session-state mode, session-state data is lost if aspnet_wp.exe or the application domain restarts.
* If you enable Web garden mode in the < processModel > element of the application's Web.config file, do not use in-process session-state mode. Otherwise, random data loss can occur.
Advantage:
* in-process session state is by far the fastest solution. If you are storing only small amounts of volatile data in session state, it is recommended that you use the in-process provider.
2. The State Server simply stores session state in memory when in out-of-proc mode. In this mode the worker process talks directly to the State Server
3. SQL mode, session states are stored in a SQL Server database and the worker process talks directly to SQL. The ASP.NET worker processes are then able to take advantage of this simple storage service by serializing and saving (using .NET serialization services) all objects within a client's Session collection at the end of each Web request
Both these out-of-process solutions are useful primarily if you scale your application across multiple processors or multiple computers, or where data cannot be lost if a server or process is restarted.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a candidate key and primary key?

527


Can you set which type of comparison you want to perform by the comparevalidator control?

526


What is page fragment caching?

556


Who creates jsessionid?

568


What is the use of placeholder control? Can we see it at runtime?

573






What is the current version of asp.net?

501


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

1773


What does ascx stand for?

512


Why web api is better than wcf?

561


What is a server farm in iis?

539


What is Razor View Engine

609


Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

557


What is a postback in asp net?

541


Define application state variable and session state variable?

558


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

656