由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 关于Jsp timeout
相关主题
session lost between JSP and StrutsJSP and TOMCAT 问题
那里设置页面timeout?[转载] JSP access database的问题
Who's online--JSP?请问JSP里这个怎么设
One more servlet Q: Http SessionJSP菜鸟一问
J2EE: why is my .jsp not refreshed?问一个J2EE和Tomcat问题
Re: 一个最近完成的JAVA项目的反思。J2EE和未来工作问题
Java Http Question?Question on JSP EL
问个J2EE server跟Apache Web Server的问题?question about using Runtime.getRuntime.exec() in Tomcat
相关话题的讨论汇总
话题: timeout话题: session话题: jsp话题: 登陆话题: 返回
进入Java版参与讨论
1 (共1页)
w*******o
发帖数: 6125
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)
f*****g
发帖数: 31
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)

w*******o
发帖数: 6125
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);

1 (共1页)
进入Java版参与讨论
相关主题
question about using Runtime.getRuntime.exec() in TomcatJ2EE: why is my .jsp not refreshed?
tomcat 快要把我逼疯了, 高手帮忙。Re: 一个最近完成的JAVA项目的反思。
JAVA新手问题请教Java Http Question?
Tomcat JSP syntax error问个J2EE server跟Apache Web Server的问题?
session lost between JSP and StrutsJSP and TOMCAT 问题
那里设置页面timeout?[转载] JSP access database的问题
Who's online--JSP?请问JSP里这个怎么设
One more servlet Q: Http SessionJSP菜鸟一问
相关话题的讨论汇总
话题: timeout话题: session话题: jsp话题: 登陆话题: 返回