here is some off the head code

<cfset timeout = 30 > <!--- length of timeout--->

funcation startTimer()
{

        timeInMS= <cfoutput>#timeout#</cfoutput> * 1000; //millisecs
        FunctionToCall = "DisplayWarning()";
        tmrHandle = setTimeout(FunctionToCall , timeInMS);

}

function DisplayWarning()
{
        alert("logging out ");
}

<body onload="startTimer()">


*NOT TESTED* theory only

WG



-----Original Message-----
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 15:09
To: CF-Talk
Subject: Re: Session Timer


At 01:09 PM 02/11/03 -0500, Scott Wilhelm wrote:
>Does anyone have a good solution for a session timer?  I'd like to be
>able to add something to my CMS that will prompt users at certain time
>intervals about their session status.

I was thinking one could write something in Javascript to do this, but I'm
not sure how.

T


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to