<!--- Apply a sessions type scenario to the site --->
<CFIF DateDiff("n", Client.LastVisit, Now()) GT 20>
<CFLOOP LIST="#GetClientVariablesList()#" INDEX="idxCliVar">
<CFIF NOT DeleteClientVariable(idxCliVar)>
<CFSET "Client.#idxCliVar#" = "">
</CFIF>
</CFLOOP>
<CFLOCATION URL="#Application.Root#" ADDTOKEN="No">
<CFABORT>
</CFIF>
HTH
-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 05:08
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