session 不到时间就超时
ouyka 2006-08-29 03:51:08 我使用的是tomcat5,在web.xml中设置session超时时间为30分钟,在jsp页面中使用session时也只用到session.getAttribute,session.setAttribute,session.removeAttribute方法,可是session经常2,3分钟就超时了,即session.setAttribute后,过一会再session.getAttribute读出来就为null了。请教一下为什么会这样?
我也在网上搜索了一下,但好像都是讲asp, .net下session超时的。就是没有讨论jsp下session超时问题,请大家帮忙看一下。多谢了!