Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

structure mystery-recording user logins

Status
Not open for further replies.

jkellow

Programmer
Aug 1, 2000
6
US
Following code is on our tstsrv and devsrv. It creates a
structure entry for each new user on the devsrv but on
tstsrv it only creates a structure entry for current user.
I have checked every setting on the coldfusion server and
made them the same. Rebooted both systems, no joy.

Why does the darn thing work on the devsrv but not tstsrv.
I deleted the entire directory on devsrv and copied it
fresh from tstsrv, devsrv works, tstsrv doesn't.
Any help would be appreciated.

<!--- If Session-Tracker structure does not exist, generate it --->
<CFLOCK TIMEOUT=&quot;30&quot; SCOPE=&quot;APPLICATION&quot; TYPE=&quot;Exclusive&quot;>
<cfif NOT isDefined(&quot;application.SessionTracker&quot;)>
<cfset application.SessionTracker=StructNew()>
</cfif>
<!--- Log current user for reference in livemon.cfm --->
<cfset stuUser = StructNew()>
<cfset stuUser.aUser = cgi.remote_addr>
<cfset stuUser.LoginTime = Now()>
<cfset stuUser.Session = session.sessionid>
<cfset dummy = StructInsert(application.SessionTracker, stuUser.aUser, stuUser, true)
</cflock>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top