put this in application.cfm...

<cfparam name="client.lasActionTime" default="#now()#">
<cfif dateDiff("m",client.lastActionTime,now()) GT 60>
        session has expired
</cfif>
<cfset client.lastActionTime = now()>


+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may 
have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 9:08 PM
To: CF-Talk
Subject: How to time out a session held as client variables?


I know how to expire a session that's been managed with session 
variables,
but how can I expire a session that's managed with client variables?


I need to have a logout button, and also I need to end the session 
after an
hour of inactivity and require the user to go back to the login screen.


Sorry if this is a basic question, but I've looked everywhere I know 
and
can't see how to do it for client vars.  Everywhere I find that covers 
this
topic quotes the techniques for session vars.


Cheers,
Mike Kear
Windsor, NSW, Australia
AFP WebWorks


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to