• Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing server timeout secs in jsp  RSS feed

 
Vasun Mac
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam setting server session time out secs 300(5 mins) in weblogic.xml
at 4th min i have to popup a session out warning message .
I have to access the session inactive time in jsp, which iam trying to do with session.getMaxInactiveInterval() , it shows 1800 secs instead of 300
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The default session timeout value is 30 mins. In Java codes, we specify it in seconds, that explains why the value was 1800. To change if Weblogic had modified the session timeout value, you'd need to open up the web.xml file & examine that you have these:



In the web.xml file, the value is specified in terms of minutes.

Hope this helps.
 
Vasun Mac
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lee,

Thanx for the response
I tried with web.xml(setting as 5 mins) and weblogic.xml(setting parameter TimeoutSecs) also , but it still show 1800 secs, I reset this time in jsp as setMaxInactiveInterval , this is working , but i dunt think this is the right way to do ? Is any other way
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!