SessionStateSection::CompressionEnabled Property
.NET Framework (current version)
Gets or sets a value that indicates whether compression is enabled for session-state data.
Assembly: System.Web (in System.Web.dll)
public: [ConfigurationPropertyAttribute("compressionEnabled", DefaultValue = false)] property bool CompressionEnabled { bool get(); void set(bool value); }
Property Value
Type: System::Booleantrue if compression is enabled; otherwise false. The default is false.
When the CompressionEnabled value is set to true, ASP.NET uses the GZipStream class to compress and expand session-state data.
.NET Framework
Available since 4.0
Available since 4.0
Show: