Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

accessing server timeout secs in jsp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic