If all you need to do is ping a url consider setting the src attribute of an image object to the url you want to hit. The image can be a simple 1x1 spacer image, as long as it's served up by your application.
Josh On Dec 4, 2007 8:57 AM, James Sherwood <[EMAIL PROTECTED]> wrote: > I think the JavaScript is the way I will go as the hidden frame refreshing > creates a click in IE I believe. > > Is there a way to do this built into the later Tapestrys? > > --James > > ----- Original Message ----- > From: "Richard Kirby" <[EMAIL PROTECTED]> > To: "Tapestry users" <users@tapestry.apache.org> > Sent: Tuesday, December 04, 2007 12:43 PM > Subject: Re: T3: session length > > > > Hi James, et al. > > > > Opps - I answered the wrong question. As Thiago writes, you would indeed > > need to use javascript to periodically fetch something from the server, > > and in particular something that the servlet engine processes, so that > it > > knows to update the last accessed timestamp on its internal HttpSession > > object mapping to that browser. A simple AJAX call would do well here - > > just ping a dummy T3 page or something. Alternatively, use a Frame > > (perhaps a hidden size 0 Frame) with a body reload - which will work > even > > if the browser doesn't support javascript. > > > > You can then leave the default servlet timeout for sessions, so that if > > the browser is closed, the session object will eventually timeout and be > > GCed. > > > > Cheers > > > > Richard > > > > Thiago HP wrote: > >> On 12/4/07, James Sherwood <[EMAIL PROTECTED]> wrote: > >> > >>> So there is no way to have it last the length of the browser being > open? > >>> > >> > >> No way unless you use some Javascript hack that keeps requesting > >> something > >> to the server. You must remember the nature of HTTP. The browser > connects > >> to > >> the server, receives the answer and the connection is closed. There is > >> nothing like a browser closing event notification sent to the server. > >> Thiago > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > __________ NOD32 2701 (20071204) Information __________ > > > > This message was checked by NOD32 antivirus system. > > http://www.eset.com > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.