I am not sure about writing to application scoped, I think you have to
cflock it, but anyway, I use client vars to do the same thing, maybe this
code will help: (I have only seen redirects of the browser window, not
actually closing it, but I suppose that is possible)
<!--- This code deletes client variables after 30 minutes
--->
<cfparam name="attributes.TimeOut" default="30">
<cfif DateDiff("n",client.LastVisit,Now()) GTE attributes.TimeOut>
<cfloop index="var" list="#GetClientVariablesList()#">
<cfset tmp = DeleteClientVariable(var)>
</cfloop>
</cfif>
-----Original Message-----
From: Roberts, William C [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 12:37 PM
To: CF-Server
Subject: Using CFAPP and inactive interfaces...
Please help!
Anyone have any good examples of using cfapplication to automatically close
the browser window after 20 minutes of inactivity?
This is what I have so far:
1. Authentication is handled via the Web server so I have #REMOTE_USER#
available to me.
2. If someone navigates my app after the timeout period (say 20 minutes) I
would like the following code below to run...
===========================================
<script language="JavaScript"><!--
alert('You do not have an active\nconnection with the System.\n\nThis may be
due to\n20+ minutes of inactivity.\n\nIf you wish to continue
working,\nplease login again.');
self.close( );
//--></script>
<cfabort>
===========================================
I need help ASAP! Anything would be greatly appreciated! Thanks!
Bill
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com