Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Session Timeout

 
kamal palia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What value(default) session.getMaxInactiveInterval() will return.
and
If i am using
<session-config>
<session-timeout>2</session-timeout>
</session-config>
in my web.xml and session.getMaxInactiveInterval() in jsp then which timeout my app will use.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kamal palia wrote:What value(default) session.getMaxInactiveInterval() will return.

It is depends on server. it is 30 minutes in tomcat. and above mentioned method returns this values in seconds.
kamal palia wrote:
If i am using
<session-config>
<session-timeout>2</session-timeout>
</session-config>
in my web.xml and session.getMaxInactiveInterval() in jsp then which timeout my app will use.

do you mean *set*MaxInactiveInterval ? if that jsp executes then setMaxInactiveInterval override web.xml
 
kamal palia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My weblogic.xml contains
<weblogic-web-app>
<resource-description>
<res-ref-name>jdbc/pgDataSource</res-ref-name>
<jndi-name>weblogic.jdbc.jts.pgDataSource</jndi-name>
</resource-description >
<session-descriptor>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value>300</param-value>
</session-param>
</session-descriptor>
<context-root>/</context-root>
</weblogic-web-app>

i have given 300 sec of timeout but don't know why session do not get timeout even i tried this in web.xml(5 min)
<session-config>
<session-timeout>5</session-timeout>
</session-config>

any idea?
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you please tell, how could you say so that session is not got timeout?
 
kamal palia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all for their help.....
web.xml entry for session time out is working fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic