• 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

Using iFrame in struts application, Parent session getting idle and timingout

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my first question in coderanch.

I am maintaining a struts based application running on Tomcat. For the first time I am using iFrames in my application. I am able to load iFrame and browse with in it. During this iFrame browsing my parent application session is getting idle and its timing out.

Any techniques to keep my parent application session alive while browsing with in iFrame?
 
Saloon Keeper
Posts: 15491
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could just have a little script in the parent frame that reloads a small image or something every minute or so, by changing the src attribute of the img tag. Add a randomized query parameter to it and it will bypass the cache.

Welcome to CodeRanch!
 
Krish Chaithanya
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But this will make my parent frame active all the time. I need my parent app to timeout when there is no activity for 5 minutes.
 
Stephan van Hulst
Saloon Keeper
Posts: 15491
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can catch mouse move or keyboard events, which reset a timer. If the timer expires, reload the image.
 
reply
    Bookmark Topic Watch Topic
  • New Topic