Can someone please advise if there is anything I should know about this
process?


It seems that whenever I enable a "Who's online" or homegrown advanced
session information features on my site, the server eventually degrades
etc...  Other than a CFLOCK which I know I need to add in (and will) is
there any other "red flags" about doing something like this which I
should be aware of?


I am trying to determine if there are any known issues with CFMX 6.1
with doing something like that.


Here's (in cf-nevercompiled-pseudocode) what I'm doing: (names of files
are made up for this email...)


<!--- Act_OnLoginSuccessful.cfm --->
<Cfset session.state = structnew()>
<Cfset session.username = SomeLoginQuery.username >
<Cfset structinsert(session.username,session.state)>


<!--- App_globals.cfm or application.cfm --->
<Cfparam name="application.states" default=structnew()>
<Cfif isdefined("session.state")>
    <Cfset session.state.last=now() >
</cfif>


<!--- Dsp_WhosOnline.cfm --->
<cfset MyStruct=StructCopy(Application.states)>
<Cfloop list=structkeylist(mystruct) index="key">
    <Cfif
datediff("n",structfind(structfind(mystruct,key),"last"),now()) gt 30>
        <CFset structdelete(application.states,key)>
    </cfif>
    <Cfelse>
        Display something here about #key# and
#structfind(structfind(mystruct,key),"last")#
    </cfif>
</cfloop>
--------------------------------------------------------


NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to