DocumentManager.HibernatedDocumentsDisposeTimeout Property

Specifies how long hibernated documents are stored on the server before disposal.

Namespace: DevExpress.Web.Office

Assembly: DevExpress.Web.v21.1.dll


public static TimeSpan HibernatedDocumentsDisposeTimeout { get; set; }

Property Value

Type Description

An object that specifies the storage time for hibernated documents. TimeSpan.FromHours(24) by default.


When the document hibernation is enabled (EnableHibernation), the DocumentManager hibernates inactive open documents after an idle timeout (HibernateTimeout) has passed.

Use the HibernatedDocumentsDisposeTimeout property to specify how long hibernated documents are stored on the server before disposal.


The following code example demonstrates how hibernation settings can be defined in the Application_Start method. Some of the settings are optional.

<%@ Application Language="C#" %>
<%@ Import Namespace="DevExpress.Web.Office" %>
<script runat="server">
    void Application_Start(object sender, EventArgs e) {
        // Code that runs on application startup
        DocumentManager.HibernationStoragePath = Server.MapPath("~/App_Data/HibernationStorage/"); // Required setting
        DocumentManager.HibernateTimeout = TimeSpan.FromMinutes(30); // Optional setting
        DocumentManager.HibernatedDocumentsDisposeTimeout = TimeSpan.FromDays(1); // Optional setting
        DocumentManager.HibernateAllDocumentsOnApplicationEnd = true; // Optional setting
        DocumentManager.EnableHibernation = true; // Required setting to turn the hibernation on
See Also