> you could also use a JS popup? or could you!? nope, cos that would halt timeout until it was cleared, and if someone's left their desk, then it could stay there indefinitely, until the world runs out of fossil fuels and the sun goes supernova.
> -----Original Message----- > From: Robertson-Ravo, Neil (RX) > [mailto:[EMAIL PROTECTED] > Sent: 08 August 2003 15:50 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] Log out warning script > > > you could also use a JS popup? or could you!? > > -----Original Message----- > From: Rich Wild [mailto:[EMAIL PROTECTED] > Sent: 08 August 2003 15:49 > To: '[EMAIL PROTECTED]' > Subject: RE: [ cf-dev ] Log out warning script > > > here's one that I just knowcked up, so it needs testing as > Imay have made > some mishtaks: > > a couple of points: > > 1) I've done two timeouts, one to bring up a warning about > what's going to > happen and then the actual logout. > 2) the warning window is deliberately a normal HTML file > because if you > popup a coldfusion page then you'll continue the sesh - but > that might not > be important so you can use CF if you want. > > watch wrap. > > <cfset timeoutwarning = 25*60*1000> > <!--- timeout before warning is 25 mins into seconds, into > milliseconds, > change accordingly ---> > <cfset timeout = 5*60*1000> > <!--- timeout after warning is 5 mins into seconds, into milliseconds, > change accordingly ---> > > <script> > function logOutWarning() { > warningwindow = window.open('timeout.htm','warnwindow', > '"location=0,status=0,menubar=0,resizable=0,height=230,width=400'); > setTimeout('logout()',<cfoutput>#timeout#</cfoutput>); > } > function logout() { > window.location='logout.cfm'; > } > </script> > > <body > onload="setTimeout('logOutWarning()',<cfoutput>#timeoutwarning > #</cfoutput>); > "> > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Sent: 08 August 2003 15:36 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] Log out warning script > > > > > > Hi all, > > > > Does anyone know of any neat scripts which will create a > > popup warning a > > user they are going to be logged out of a system because > > their session has > > timed out? It would need to give a warning which would hold > > off the logout > > for 30seconds after which time the user would be logged out. > > Alternatively, > > the user could click a button and their session on the site would be > > refreshed. > > > > Thanks, > > Damien > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET. > > On entering the GSI, this email was scanned for viruses by > the Government > Secure Intranet (GSI) virus scanning service supplied > exclusively by Cable & > Wireless in partnership with MessageLabs. > > GSI users see > http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pd f for further details. In case of problems, please call your organisational IT helpdesk -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
