Geeks With Blogs
Rajesh Pillai My experiments with mvc, jquery, wpf, silverlight, sharepoint, tdd and design patterns.

ASP.NET 4.0 State Compression

Session state compression was always a worry in the past.  With 4.0 this feature is built into the framework.
Just modify your web.config with the following changes and you are ready to go.  Now there will be less data travelling
through the wire.

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

Just add the "compressionEnabled="true" to sessionState config.  The compression is done by
.NET framework System.IO.Compression.GZipStream class.



Posted on Saturday, November 28, 2009 3:04 PM ASP.NET 4.0 , .NET 4 | Back to top

Comments on this post: Tip: ASP.NET 4.0 State Compression

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Rajesh Pillai | Powered by: