Session Timeout

Hi Guys,

I am using SUN ONE Web Server 6.1 and BEA Weblogic 8.1. In weblogic i have set my session timeout as 30 minutes. But the application knocks me out in 20 minutes. I could not find the configuration parameter that is set for session-timeout in web server. i tried adding

<session-properties>

<property name="timeOutSeconds" value="60" />

</session-properties>

in sun-web.xml. But it is of no use.

Actually there are three folders admin-app,user-app and search where there are sun-web.xml. I dont know which one to use so i added the above element all three of them.

i dont know in which startup file is this sun-web.xml loaded.

i checked server.xml. it had only one webapp uri in search element under VS tag.

Please suggest me with your ideas. Any help would be greatly appreciated.

thanks

arun.

[896 byte] By [arunkumarm06a] at [2007-11-26 12:49:29]
# 1

Modifying sun-web.xml should work for your app. You made a mistake using minutes value where seconds should be used. The correct setting for 30 minutes timeout should be 1800.

The easiest way to change session timeout value is modifying web.xml, i.e:

<session-config>

<session-timeout>30</session-timeout>

</session-config>

This one is set in minutes and it overrides timeOutSeconds value set in sun-web.xml, so if you have both set the actual timeout value would be taken from web.xml.

If none is set the default value taken from <web_server_root/instance_name/config/default-web.xml> is being used:

<session-config>

<session-timeout>30</session-timeout>

</session-config>

Sultala at 2007-7-7 16:34:16 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

It's true that <session-timeout> in sun-web.xml can be configured to control session timeouts, but this won't affect web apps deployed on WebLogic. It's also never correct to modify the admin-app or user-app sun-web.xml files; these are private interfaces of the Web Server administration server.

I don't know what's going wrong in your case, arunkumarm06 , but no Web Server setting can control WebLogic session timeouts. WebLogic settings need to be configured in WebLogic.

elvinga at 2007-7-7 16:34:16 > top of Java-index,Web & Directory Servers,Web Servers...