简体   繁体   中英

How can I block HTTP session timeouts in my Seam applications?

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?

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超时变量设置为很高的值

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM