Flex Web Application Timeout after a specific time and redirect to login

怎甘沉沦 提交于 2019-12-24 21:30:07

问题


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:


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.



来源:https://stackoverflow.com/questions/4753205/flex-web-application-timeout-after-a-specific-time-and-redirect-to-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!