ColdFusion uses to indentify individual clients (browsers) connected to a
ColdFusion application.
Should you have more than one browser installed and use it to connect to
your application you will note the URLToken is slightly different for each
browser.
The web is "stateless". Every request on the Web stands on its own two
feet. The data received by a form submission, for example, is only
available in the receiving page and not to subsequent requests. State means
remembering data from earlier requests.
State management is the mechanism ColdFusion uses to bind a given user's
browser to the data to be persisted across their requests.
Try using the following code to terminate your session instead (put it in
your Application.cfm file).
<cfif Now() - Client.LastVisit GT CreateTimeSpan(0,0,20,0)>
<cfloop collection="#Client#" item="szVar">
<cfif NOT ListFindNoCase
("cfid,cftoken,urltoken,lastvisit,hitcount,timecreated", szVar)>
<cfset StructDelete(Client, szVar)>
</cfif>
</cfloop>
</cfif>
Adjust the timespan setting for whatever you require your sessions to be
active.
If you want to stick with your code change the META REFRESH line to the
following:
<cflocation url="" addtoken="no">
HTH.
Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT 2609
Tel: (02) 62115927
Adam St.Pierre
<[EMAIL PROTECTED] To: CF-Newbie <[EMAIL PROTECTED]>
om> cc:
Subject: Question about CFID and CFTOKENS
05/03/2004 07:14
Please respond to
cf-newbie |
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
