File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Application logout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Application logout problem" Watch "Application logout problem" New topic
Author

Application logout problem

Vidhya Mohandas
Greenhorn

Joined: Aug 31, 2007
Posts: 7
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Application logout problem