我可以在不活动时退出页面吗 [英] Can i go logout page on inactivity

查看:45
本文介绍了我可以在不活动时退出页面吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我建议在不活动时退出页面的解决方案,就像银行页面一样.会话超时后,应用程序必须显示登录页面才能登录应用程序.我正在使用 Spring acegi 安全性.非常感谢您的帮助.感谢您抽出宝贵时间.

Please suggest me solution to go logout page on inactivity just like bank pages will do. After session timeout, app has to display login page to login to the application. I am using Spring acegi security. Your help is greatly appreciated. Thank you for your time.

推荐答案

你只需要把它放在你的jsp页面的head"标签中

you have to just put this in your jsp page "head" tag

<meta http-equiv="refresh" content="${pageContext.session.maxInactiveInterval};url=login">

在上面的网址中,您必须设置登录控制器路径.会话过期后,您的页面将被重定向到您指定的网址.

In above url you have to set your login controller path. After session expired your page will be redirected to the url specified by you.

这篇关于我可以在不活动时退出页面吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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