如何在 Seam 应用程序中阻止 HTTP 会话超时?
我们有一个相当严格的架构,其中有一个类似门户的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以让子应用程序对门户应用程序中的特殊“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.将服务器上的 HttpSession 超时变量设置为非常高的值
Set the HttpSession timeout variable on the server to a very high value