File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to maintain session time out in parent window and popup windows

 
ayyappan Bas
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing an application where there are two windows named "parent window" and "popup window".when i click a button from parent window it opens a popupwindow where i developed a application for writing a exam. The session time out i had set as 30 minutes in web.xml.When i click the button from parent window and popup window opens and exam starts and i had set exam time as 60 minutes,but after 30 minutes the session gets expired in popup window since the session time out in web.xml is 30 minutes.This is where i am encountering the problem because of this i am not able to write the exam.How can i solve this problem and i dont want to change the session time out in web.xml, as the exam time changes for each exam?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll either need to increase the session time-out value. or add an Ajax "pinger" to the exam pages to keep the session active by making requests back to the server at regular intervals.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic