Send the users session info to the async call. When it's done, log the data to 
an application variable with the users session info (or whatever). When the 
user gets to a page, have a StructKeyExists() check to see if the info exists 
in application. If it does, delete it from application and apply it to the 
users session. 

A better solution (if someone knows how) is to pass the users session info to 
the async call and have the call manipulate that users session directly with 
the result when it comes in.

> I have been trying to work out some of the details for an asynch call 
> I need.  I have an external CFHTTP call that returns a data set as an 
> xml packet.  This call can take up to 10 seconds to complete, so I 
> want to spawn it off and let it run while the users is navigating some 
> other pages.
> 
> Problem is, I need to know when the packet gets back and I need to 
> maintain session information across the request so that the user 
> accesses the correct packet of data.
> 
> I've successfully set up the gateway and made the call, but I am stuck 
> from there.  Any suggestions.
> 
> Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200722
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

Reply via email to