星期一, 1月 21, 2013

[TOMCAT] 設定 session逾期時間

如何設定tomcat的 session逾期時間
單位:分鐘!!
 <session-config>
    <session-timeout>5</session-timeout>
  </session-config>
如果要設定成秒數的話要另外實作,根據下述的資料參考
http://www.velocityreviews.com/forums/t146162-tomcat-5-0-config-timeout-in-seconds.html

That's a strange question. Why do you want to do it?
Anyway, no, it's not possible. Not directly at least. You will have to
implement a session listener and call setMaxInactiveInterval on every
new session. There you can specify the interval in seconds

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails