Flex Web应用程序在特定时间后超时并重定向到登录 [英] Flex Web Application Timeout after a specific time and redirect to login

查看:277
本文介绍了Flex Web应用程序在特定时间后超时并重定向到登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

我们有一个Flex,Blazeds&基于Spring的Web应用程序。要求是,如果浏览器闲置30分钟,我们必须弹出错误信息给用户,然后重定向到登录页面。我已经搜查了这个,并没有能够找到一个合适的解决方案。如果有人能指引我正确的方向,那就太好了。我真的很感激

谢谢


解决方案

这是我将如何处理它。当应用程序加载时,启动一个30分钟的计时器,并向SystemManager添加一个监听器以进行鼠标移动。每次鼠标移动重置定时器回到30分钟。如果计时器关闭,则显示您的模式对话框,通知用户超时。当他们点击确定时,将它们发送回登录屏幕。希望有帮助。


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

解决方案

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.

这篇关于Flex Web应用程序在特定时间后超时并重定向到登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆