I set a 2 element list to a session variable and retrieve the last element.
This works ok on this page.
<cflock name="SESSION.SessionID" timeout="10">
<cfset SESSION.SponsorID = "HPRO1^The Human Process Inc.">
<cfoutput>#ListLast(SESSION.SponsorID, "^")#</cfoutput>
</cflock>
on subsequent pages I have
<cflock name="SESSION.SessionID" timeout="10">
<cfoutput>#ListLast(SESSION.SponsorID, "^")#</cfoutput>
</cflock>
but strangely when I do a ListLen(Session.SponsorID, "^") the list only
shows as having 1 element only and I can't access the 2nd element on the
list in other pages. I tried various delimiters and still did not work.
Where did the 2nd element go?
I am using CF 4.0
Sebastian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists