On Jun 14, 2007, at 11:12 AM, Dave Watts wrote:

>> onRequest... mine looks like this, but if I leave it in
>> Application.cfc, remoting fails altogether:
>>
>> <cffunction name="onRequest" returnType="void">
>>    <cfargument name="thePage" type="string" required="true">
>>    <cfinclude template="#arguments.thePage#"> </cffunction>
>
> You can't use onRequest with Flash Remoting or SOAP.

Ok! I won't ask why, but it's one for the archives I guess :)

>
>> I'm also using J2EE sessions, which somewhere in the docs I
>> thought it said "the session will end when the user closes
>> the window" but that's not what I'm seeing. It always waits
>> until the session has timed-out before ending. Am I missing
>> something?
>
> The session ends when it times out, period. When the user closes  
> the window,
> the session cookie which is used to associate that browser with a  
> session is
> deleted, but the session itself still exists - the server has no  
> way of
> knowing that the browser won't make another request.

This makes perfect sense. Sadly I was reading the docs that get  
installed with CF, and not looking at the comments on livedocs, which  
explain exactly what you said.

Given that that is the case and I have no way of knowing the browser  
closed, I have a function (defined in a .cfc) called by flash that  
basically loops for a while and returns some data (or it times out   
and then returns an empty record set). As soon as I get this  
response, I send out a new request from flash. So I'm thinking that  
whenever a client closes their browser that they will be in the  
middle of this call, waiting for a response. Make sense? I'm also  
guessing that there may be an error thrown here when CF tries to  
return the results to a client that doesn't exist anymore. Can I  
catch this error in Application.onError and tell CF to end the session?

This could probably be a new post, but what I'd really like to learn  
is a decent way to monitor the events in Application.cfc. As it  
stands, the browser window is closed, so how do I view any trace/ 
debug statements coming from those events?

Thanks,
John



> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281149
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to