Explain about shrinking session state in ASP.NET 4.0 ?

 Posted by Bharathi Cherukuri on 8/29/2012 | Category: ASP.NET Interview questions | Views: 3702 | Points: 40

For storing data, ASP.NET provides 2 options namely,
1) Out of process session state
2) MS SQL server session state

Session-state providers stores the data out side the web application worker process in both the cases. Session state has to be serialized before it sends it to the external storage.
In ASP.NET 4.0, a new compression option is introduced for both out-of-process session state providers. We can set the compressionEnabled="true" in configuration file. ASP.NET will compress the session state by using the .NET Framework System.IO.Compression.GZipStream class.


sqlConnectionString="data source=dbserver;Initial Catalog=aspnetstate"

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response