Asp.net 为什么Velocity在几分钟后就失去了会话?

Asp.net 为什么Velocity在几分钟后就失去了会话?,asp.net,session,appfabric,distributed-caching,Asp.net,Session,Appfabric,Distributed Caching,我已经使用Velocity分布式缓存设置了sesion管理。我有3台服务器托管缓存,并使用 new-cache Sessions -Secondaries 1 TTL 1440 下面是我的web.config文件 <section name="dataCacheClient" type="Microsoft.Data.Caching.DataCacheClientSection,&#xD;&#xA; cacheBaseLibrary" allowLocation="t

我已经使用Velocity分布式缓存设置了sesion管理。我有3台服务器托管缓存,并使用

new-cache Sessions -Secondaries 1 TTL 1440
下面是我的web.config文件

<section name="dataCacheClient"
type="Microsoft.Data.Caching.DataCacheClientSection,&#xD;&#xA;   cacheBaseLibrary"
allowLocation="true"
allowDefinition="Everywhere"/>

    <sessionState mode="Custom" customProvider="Velocity" >
        <providers>
            <add
              name="Velocity"
                       type="Microsoft.Data.Caching.DataCacheSessionStoreProvider"
              cacheName="Sessions"/>
        </providers>
    </sessionState>


任何帮助都将不胜感激。

看来,他们要被驱逐了。默认情况下,缓存是可收回的,即可以收回缓存中存储的项目。您应该使用newcache命令创建不可逐出的缓存。 例子: 新缓存-逐出无

根据需要设置其他缓存属性