Flex Web Application Timeout after a specific time

2019-09-06 08:19发布

All,

We have a Flex, Blazeds & Spring based Web application. The requirement is that if the browser is idle for 30 minutes, we have to popup an error message to the user and then redirect to the login page. I have searched on this and was not able to find a suitable solution to this. If someone can point me in the right direction, that would be great. I really appreciate that

Thanks

Harish

1条回答
We Are One
2楼-- · 2019-09-06 08:35

Here's how I would approach it. When the app loads, start a 30 minute timer and add a listener to SystemManager for mouse movements. Each time the mouse moves reset the timer back to 30 minutes. If the timer goes off, then display your modal dialog informing the user they've timed out. When they click OK, send them back to the login screen. Hope that helps.

查看更多
登录 后发表回答