aspx Tutorial

NET Articles,jQuery demo, with jQuery, online tutorial,Jquery, SilverLight, Javascript,,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here


Get our toolbar!


Posted by Aamir Hasan   on Sunday, August 22, 2010 Total Views:  

Session is a server side state management technique in ASP.NET. ASP.NET 4.O provide build in support for compress and decompress serialized Session state, By using this compress session state, you can improve your server performance. Compress option can be used when you are storing large amount of data in Session this will reduce the size of session. Session data can be stored in following two modes.

  1. In Process
    • Store in the same ASP.NET Process
  2. Out of Process
    • Store in Data base.

To enable this feature, you have to set compressionEnable attribute to ture in Session State settings in Web.config.

I have created a Web Site in Visual Studio 2010 as i will consider you know how to create a web site in Visual Studio 2010.

Now i have stored some text in Sessions as shown in below Figure 1.1

Figure 1.1

Enable compressionEnabled= "true" in Session State of your Web.Config file as shown in below Figure 1.2

Figure 1.2

Now Load this Page and you will see the out put as i have shown in Figure 1.2

Figure 1.3

Disable compressionEnabled= "false" in Session State of your Web.Config file as shown in below Figure 1.4


Figure 1.4

Now Load your page, you will see the Begin Render and End Render time as shown in below Figure 1.5

Figure 1.5

This example shows that using ASP.NET 4.O new feature you can reduce the work load of your server but this will be effected when you are storing large amount of data.


Compress Session State  in ASP.NET 4.O



Category: All | ASP.NET 4.O
Protected by Copyscape Online Plagiarism Tool

Comments (1) -

ray ban uk
ray ban uk People's Republic of China
11/7/2012 8:16:02 PM #

It really is significant to speak about exactly where holidays will choose location and which traditions they will choose to celebrate.

hostgator review
hostgator review United States
11/2/2013 4:21:17 AM #

Actually owned iphones since its first came out and always had the latest every time its release. I'm an engineer in the consumer electronics field and liked iphones that i stuck with it for so long. Its stable and easy to use which is why most people have it. I was looking for a little bit larger screen and my research took me to check out the S4 that i ended up buying. I had the s4 for over a month now . I can say hands down the iphone doesn't even compare over-all . Ease of use you can switch to easy mode for people that wants decisions made for them. for apps, all the apps i have are in android market plus more itunes didn't have. for hardware build quality, I agree that iphone is better build, however that quickly becomes a moot point as soon as you slip them in a case which everybody does anyway. Processor and everything else, the iphone is just a way inferior machine. If you've only used iphones, i couldn't blame you for thinking its the greatest and for some that experienced both and actually use a smartphone heavily. I doubt that this review is even needed. The S4 is just in another level compared to the iphone. Again basing this on my personal experience and i respect apple iphone owners. I still own 2 of them but definitely selling them soon.

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5