setting HTTP session timing

Hi friends , i got a basic doubt , can u help me out in this. My task is to setting the session timing to some specified timings. MY problem is where to set this . in the weblogic-web.xml or in the application-web.xml.can u jhelp me out in this Thanks
[298 byte] By [arun.kumara] at [2007-11-26 14:23:34]
# 1

Regardless of your deployment environment, you can set the session timeout either via deployment standard descriptor web.xml:

<web-app>

<session-config>

<session-timeout> 1 </session-timeout >

</session-config>

</web-app>

OR via programmaticaly via HttpSession interface:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.ht ml#setMaxInactiveInterval(int)

Of course, you can get hold of the HTTPSession via HttpServletRequest interface:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletReq uest.html#getSession()

Hope this helps.

cvr-786a at 2007-7-8 2:15:58 > top of Java-index,Web & Directory Servers,Web Servers...