avatar
关于Jsp timeout# Java - 爪哇娇娃
w*o
1
当session timeout时,跳到timeout.jsp,并提供Click Here to login again
连接返回login.jsp,并能成功登陆。问题是,如果用户click IE的Refresh button,页面
同样返回login.jsp,但此时登陆,仍然返回timeout.jsp,登陆不成功,
不知道有没有人遇到类似情况,是否可以在web.xml什么的设置redirect
的target?(Tomcat 4.1)
avatar
f*g
2


Don't understand you business logic. But you can try to
create a new session in action of login.jsp
session = request.getSession (true);

【在 w*******o 的大作中提到】
: 当session timeout时,跳到timeout.jsp,并提供Click Here to login again
: 连接返回login.jsp,并能成功登陆。问题是,如果用户click IE的Refresh button,页面
: 同样返回login.jsp,但此时登陆,仍然返回timeout.jsp,登陆不成功,
: 不知道有没有人遇到类似情况,是否可以在web.xml什么的设置redirect
: 的target?(Tomcat 4.1)

avatar
w*o
3
The exact case I met:
The problem I have found is that if you have security enabled (via
security-constraint, login-config, security-role etc in web.xml), and have a
short session timeout, any user activity after the timeout expires causes a
redirect back to the auth-method (e.g FORM).Once authentication is successful,
processing then continues where the user left off however any context objects
that were bound to the previous session are lost and the results are
unpredictable. I too would like

【在 f*****g 的大作中提到】
:
: 面
: Don't understand you business logic. But you can try to
: create a new session in action of login.jsp
: session = request.getSession (true);

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。