1

我进入了一个前端作为 SmartClient AJAX RIA 框架和服务器端 spring-jpa-hibernate 的项目。所有服务器 API 都作为 RESTish 服务公开。

我的问题是,当 GUI 空闲超过 10 分钟时,服务器会终止我的 Web 会话并使用 401 响应(未经授权的访问)为我的下一个请求提供服务。

我在 web.xml 中尝试了以下设置

<session-config>
    <session-timeout>30</session-timeout>
</session-config>

但我的网络会话仍然在近 10 分钟后到期。

任何想法?

4

1 回答 1

0

please provide details on the type of server used to deploy.. many app servers have an option to override the session timeout during deployment phase..

I've worked extensively with Websphere (which has this feature)...

于 2011-06-13T21:39:29.893 回答