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

Pop up window to the user when session is about to timeout.

 
Shwetha Jagadish
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to have a Pop up Window to the user when the session is about to time out asking to continue with the current session or logout.

For example : If i have specified 10 minutes as session timeout in web.xml and if the user doesn't do perform anything for 8 minutes, then i want to have a pop up window with the message
(Ex. : This screen will timeout in 2 minutes. Do you need more time?)

Please suggest how to do this?

Thanks,
Shwetha.
 
Marcin Kwiatkowski
Ranch Hand
Posts: 32
Eclipse IDE Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can implement the whole thing in JavaScript, simply display a popup after given time.
 
Rocky Khan
Greenhorn
Posts: 11
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the following script to pop up the window after some fixed time period...
just call the function myPopup(ans); after the fixed time..
'ans' Variable will contain the choice of user(i.e. want to continue or not)...



Create on jsp file named 'dispDialog.jsp' ask for user choice and a submit button...
add the following code to return the 'ans' to parent window..



I think this will help...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic