• 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

Application logout problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on a J2EE web application project which is deployed in Tomcat 5.5.23. The problem I have with the logout is:
I have set the session-timeout entry as 30 min in my project's web.xml file and I have done the sesion expiry check in a javascript function by passing that 30 minutes. When i run my application and leave it idle opened in a browser for about 30 min, automatically my javascript function gets invoked and displays a popup to let the user know the session is about to expire and takes back to the login page. Everything is working as expected. But when I keep the application idle in a browser for 20 min and then try to make a request by clicking on a link or button (server method call), automatically the application logs me out and when I login as the same user again, it takes me back to the same page where I tried to make a request. I want the application to logout only if i intentionally try to logout or when the session expires in about 30 min. I do not want the same to happen in 20 min. Please help me in resolving this problem.
[ September 04, 2007: Message edited by: Bear Bibeault ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic