Keith Gaughan wrote:
> I need to build a Java CFX to do a little socket programming. Thing is,
> the protocol involved needs me to remember a session identifier.
>
> My first thought was to look to see if there was any way to read
> variables--just like using the CALLER scope with regular pure CF
> tags--but there doesn't seem to be any way of doing so. I wanted to
> do this so as I could store the session id in the REQUEST scope.
>
> So my question is, is there any way to persist data (per request:
> static variables aren't an option because this stuff isn't shared
> between all instances of the tag. Same with getSetting()) for the
> duration of a request so that a CFX can refer to it between invocations?
>
> K.
>
The CFX API is rather limited as to what it can pass back and forth.
You can _set_ variables from within a CFX, but (with an exception for
custom tags(?) ... oh, that's getSetting. Never used it.) the only data
you can read is what you pass to it -- i.e., one (1) query and all the
attributes (ie, parameters).
Can you simply pass the session as:
<CFX_mytag SessionID="blah123456789">
and from the CFX
Request.SetVariable("SessionID","newblah123");
?
--
--Lewis Sellers (AKA min)
Intrafoundation Software
http://www.intrafoundation.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185330
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54