I would suggest to use the following, on top of the JS script you got.
<cfif isDefined("client.someoneID") AND dateAdd('n', 30, client.lastVisit)
LT now()>
<cfloop list="#getClientVariablesList()#" index="item">
<cfset deleteClientVariable(item)>
</cfloop>
<cflocation url="#cgi.http_referer#" addtoken="no">
</cfif>
Off course if your not using the client scope, you should set a variable
your self each time they hit a page.
i.e.
<cfset scope.lastVisit = now()>
And then replace "client.lastVisit" with your scope
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 8:08 PM
Subject: Re: CF Logins and Users Logged In
> Mmmm
>
> Using Simon Horwith's method, would an extra field need to be created in
the usertable?
>
> He mentioned creating an application scope variable and everytime a user
logs in adding a key (structure) to this variable.
>
> I may be wrong but by using this method, it seems to me that no
alterations are need to my tables which is the best approach I feel.
>
> Could somebody confirm this is the case.
>
>
> Also
>
> Taco - All users using the system will have javascript enabled - what
would your suggestion be to end the users session when they log off?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4