Can someone give me an example of a session variable declaration within a CFC that will persist throughout a session?

The following code does not seem to work right.  The variable gets defined but the value is always empty.  What am I doing wrong?

<cflock scope="session" type="exclusive" timeout="500">
  <cfset session.myVar = "test">
</cflock>

I would like to have multiple CFCs that control a group of session level IDs that determine the output in a dynamic user interface.  Is there a better way to do this with CFCs than to use session variables?  

Thanks in advance!

-MC
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to