回覆列表
  • 1 # 影片好笑

    1 web.xml 設定web應用程式描述符web.xml裡的<session-timeout>元素。這個值以分鐘為 單位,並覆蓋weblogic.xml中的timeoutsecs屬性 <session-config> <session-timeout>24</session-timeout> </session-config> 此例表示session將在24分鐘後過期 當<session-timeout>設定為-2,表示將使用在weblogic.xml中設定的 timeoutsecs這個屬性值。 當<session-timeout>設定為-1,表示session將永不過期,而忽略在 weblogic.xml中設定的timeoutsecs屬性值。 該屬性值可以透過console控制檯來設定 2 weblogic.xml 設定weblogic特有部署描述符weblogic.xml的<session-descriptor>元素的 timeoutsecs屬性。這個值以秒為單位 <session-descriptor> <session-param> <param-name>timeoutsecs</param-name> <param-value>2600</param-value> </session-param> </session-descriptor> 預設值是2600秒 3,jsp中控制 session.setmaxinactiveinterval(7200); session是預設物件,可以直接引用,單位秒s 4,servlet中控制 httpsession session = request.getsession(); session.setmaxinactiveinterval(7200); 單位秒s

  • 中秋節和大豐收的關聯?
  • 女生臉上汗毛很多怎麼辦?有沒有什麼好用的東西能除掉它?