Topic: jsp中网页过期问题 |
Print this page |
1.jsp中网页过期问题 | Copy to clipboard |
Posted by: gna15 Posted on: 2007-11-09 10:25 在我的jsp网页中点击进入A网页,然后点击“返回”按钮返回上一页,但有时跳到“网页已过期”页面,无法正常返回,“返回”按钮用 window.history.back() ,请问是怎么回事?? |
2.Re:jsp中网页过期问题 [Re: gna15] | Copy to clipboard |
Posted by: Cappuccino Posted on: 2007-11-10 20:14 一般是因为上一个页面有post数据到下一个页面中…… |
3.Re:jsp中网页过期问题 [Re: gna15] | Copy to clipboard |
Posted by: gna15 Posted on: 2007-11-12 14:06 Cappuccino 能说的再具体一些吗???? |
4.Re:jsp中网页过期问题 [Re: gna15] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2007-11-16 17:41 window.history.back() ?? Is this a *Javascript* functionality. From my understanding, JSP needs to keep a session for each connection that a user connects, as long as the session timer does not expire, we should go back to the previous page. What happened if you click the *back* button in your browser? |
5.Re:jsp中网页过期问题 [Re: gna15] | Copy to clipboard |
Posted by: 无行 Posted on: 2007-11-24 11:27 楼上说的对, window.history.back() 是javascript的请求,如果你的session已经超时,那你用window.history.back() 这样的客户端请求返回上一页就会“报网页已过期”,跟页面顶上加这个 <head> <meta http-equiv="expires" content="时间"> </head> 或者你在你的web.xml里加 <session-timeout> <session-timeout>30 </session-timeout>//单位分钟 </session-timeout> |
6.Re:jsp中网页过期问题 [Re: gna15] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2007-11-26 01:01 Exactly, I think 无行 has just emphasized the point. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |