[英]session timeout redirect to login java maven project
short Question:简短的问题:
can i redirect to the login page via web.xml?我可以通过 web.xml 重定向到登录页面吗?
I have set a session timeout in the web.xml but i cant find anything related to the redirect thats as simple as the problem sounds :D我在 web.xml 中设置了会话超时,但我找不到与重定向相关的任何内容,就像问题听起来一样简单:D
if (yes)
{
how
}
You can Use this JSP header :您可以使用此 JSP 标头:
<meta http-equiv="refresh" content="<%=session.getMaxInactiveInterval()%>" url="redirect URL" />
getMaxInactiveInterval()
returns the timeout interval. getMaxInactiveInterval()
返回超时间隔。 So once session times out, control will be redirected to the mentioned URL所以一旦会话超时,控制将被重定向到提到的 URL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.