如何在 Seam 应用程序中阻止 HTTP 会话超时?

发布于 2024-07-29 03:27:01 字数 240 浏览 3 评论 0原文

我们有一个相当严格的架构,其中有一个类似门户的 Seam 应用程序,它在 iFrame 内启动更多的“子”Seam 应用程序。

我们遇到的问题是,即使“子”应用程序仍在使用,门户应用程序的 HTTP 会话也会超时。 我们需要保持 HTTP 会话超时以保证站点安全。 我们已经思考这个问题有一段时间了,发现自己陷入了许多死胡同。

因此,问题是我们如何根据“子”应用程序中的活动来阻止门户应用程序中的 HTTP 会话超时?

We have a rather restrictive architecture where we have a portal-like Seam application which launches further 'child' Seam applications inside an iFrame.

We have a problem where the portal application's HTTP session times out even though the 'child' applications are still being used. We need to keep the HTTP session timeouts to keep the site secure. We've been chewing at this problem for a while now and found ourselves down a number of dead ends.

So the questions is how can we block HTTP session timeouts in our portal application based on activity in 'child' applications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

醉梦枕江山 2024-08-05 03:27:01

您可以让子应用程序对门户应用程序中的特殊“keepalive”URL(可以是一个简单的 servlet,仅返回 200 OK)执行 HTTP 调用。 这些请求可以由客户端通过 AJAX 发送出去,也可以根据子活动在服务器端使用 HTTP 子请求来执行。

You could have the child applications do a HTTP call on a special "keepalive" URL (which can be a simple servlet just returning 200 OK) in the portal application. These requests could either be sent out via AJAX by the client or you could do it on the server side using HTTP sub requests, based on child activity.

迟月 2024-08-05 03:27:01

将服务器上的 HttpSession 超时变量设置为非常高的值

Set the HttpSession timeout variable on the server to a very high value

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文