1 web.xml
设置web应用程序描述符web.xml里的
单位,并覆盖weblogic.xml中的timeoutsecs属性
此例表示session将在24分钟后过期
当
timeoutsecs这个属性值。
当
weblogic.xml中设置的timeoutsecs属性值。
该属性值可以通过console控制台来设置
2 weblogic.xml
设置weblogic特有部署描述符weblogic.xml的
timeoutsecs属性。这个值以秒为单位
默认值是2600秒
3,jsp中控制
session.setmaxinactiveinterval(7200);
session是默认对象,可以直接引用,单位秒s
4,servlet中控制
httpsession session = request.getsession();
session.setmaxinactiveinterval(7200);
单位秒s