• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session time out before it's supposed time

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I got a problem with session timeout on my current project.
I already set session timeout to 120 minutes on the web.xml file and I never change the web.xml file nor the classes, but sometime (while mostly using Netscape 6 browser) when I left the jsp pages untouched for about 20 minutes(our jsp pages are protected by security, after session time out pages will thrown to login page) pages will thrown to login page.
I found out this is caused by the session timeouted.
Did somebody ever experienced it before?
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try setting the value of timeout in jsp and see if it works.
HttpSession session = request.getSession();
session.setMaxInactiveInterval(interval);
where interval is no of seconds for how long the session object will be kept alive between client requests.
[ August 27, 2002: Message edited by: Snigdha Solanki ]
 
Jhonson Garcia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Snigdha..
I've tried on one or two pages, so far the session doesn't time outed under 20-30 minutes, but I didn't sure it works 100%, perfectly.
So I didn't apply it to my pages, cos' there are hundreds of jsp pages I have.
Regards,
JG
 
reply
    Bookmark Topic Watch Topic
  • New Topic