|
What if we create a JavaScript function in the frameset, and use the onFocus event of all the fields in the web page to call this function? The function would reset a timer or counter, and if the timer/counter expires it could simply load a blank page in the dummy frame? It would definately call for less traffic to the server, than if you do a submit every time we change fields or move the mouse around. I have to admit that I don't really know from the top of my head how the JavaScript function should be writen to work the best, but that shouldn't be too hard to do. What do you think? /Peter "Bill M" <meechamw@xxxxxxx > To Sent by: "Lotus Domino on the iSeries / domino400-bounces AS400" <domino400@xxxxxxxxxxxx> @midrange.com cc Subject 2004-05-12 21:22 Re: Session Time Out for browser app Please respond to Lotus Domino on the iSeries / AS400 <domino400@midran ge.com> Rick, Brainstorming is great stuff! For any input field's onBlur or onFocus you could do submit a form that would load in a hidden frame or iframe on the page: <form id="dummyPage" name="dummyPage" action="dummyPage.html" target="frameName"> onblur=" dummyPage.submit(); " That would keep the session open only if they were active on the page. I wouldn't use onChange. I guess you could add it to the onMouseOver. Or you could add some <div>'s to the page and add it to them as onMouseOvers as well. Problem with that is that some optical mice trigger the mouse over event a lot easier than normal mice, of course bumping the mouse would keep the session alive as well. We are getting away from the intent of this list with this discussion. If additional html or javascript discussions are necessary we should take this offline. Bill meechamw@xxxxxxx ----- Original Message ----- From: rick.baird@xxxxxxxxxxxxxxx To: domino400@xxxxxxxxxxxx Sent: Wednesday, May 12, 2004 3:00 PM Subject: Re: Session Time Out for browser app Peter and Bill, Just for discussion's sake let's take this a step further... It would be nice if I could somehow tell the dummy page that I was actually active in the main document - i.e. only refresh the session by reloading the page if they had been active (changing, focus/blur fields on the page) in the last 5 minutes. This way, the security of having the session time out would be preserved, while keeping it open if they are actually keying data. Maybe I could use a generic function for the onfocus, onblur or onchange event for input fields on the document that would set a variable on the dummy page indicating there is activity, causing the page to refresh within the session timeout time span. when the dummy page refreshes, this variable would be reset to it's original value, and the page would only refresh again if the variable was changed again. Is there a way to condition the meta tag? or, can a page be refreshed in other ways? is there a function or @command to retrieve the session time-out value (I couldn't find one)? Just thinking out loud.. _______________________________________________ This is the Lotus Domino on the iSeries / AS400 (Domino400) mailing list To post a message email: Domino400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/domino400 or email: Domino400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/domino400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.