It is
public void setMaxInactiveInterval(int interval)
PLease check online
servlet API at
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet /http/HttpSession.html#setMaxInactiveInterval(int) There is another way to configure the session timeout through web.xml. But the final
word is from session.setInactiveIntervel(int t) API inside your servlet code. In other words, if you set BOTH in web.xml and inside your servlet code using above API, only the API's value is taken into account.
Please check this discussion on how to configure through web.xml
http://www.javaranch.com/ubb/Forum7/HTML/003140.html regds
maha anna
[This message has been edited by maha anna (edited May 11, 2001).]