Method setMaxInactiveInterval(int) not found in interface javax.servlet.htt

Method setMaxInactiveInterval(int) not found in interface javax.servlet.http.HttpSession. session.setMaxInactiveInterval(2400); I am trying to expire a session attribute after 40 minutes using this:session.putValue("UID", uid);session.setMaxInactiveInterval(2400);
[299 byte] By [adamrau] at [2007-9-26 3:44:14]
# 1
Only the new version of the the servlet API supports this method. Bosun
bbello5778 at 2007-6-29 12:23:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Is there an older method on doing this just so I can accomplish it?Thanks
adamrau at 2007-6-29 12:23:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Can anyone help me with this?Thanks again
adamrau at 2007-6-29 12:23:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Can anyone help me with this?Thanks again
adamrau at 2007-6-29 12:23:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Nope, I'm afraid the API just doesn't support it. If your container allows you to set timeout, then you can globally configure session timeout for your applications, but if you're using something like JServ, you will not be able to set the timeout programatically.

(If you are using JServ, change! Tomcat will serve you well.)

cafal at 2007-6-29 12:23:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...