bdn.borland.com

Article #28675: Sending an early response in a WebSnap application loses session values.

Sometimes you will want to send out information as it is being processed in your WebSnap Application. One way to do this is to call Response's SendResponse method. If you are using session components then you will also need to make a call to the Session's UpdateResponse method to preserve your session values.

An example of how to do this is listed below:

Session.Values['a'] := 'could be lost... unless';
Response.Content := 'Response.SendResponse Sent';
Session.UpdateResponse(Response); // add this line
Response.SendResponse; // now send the response

Last Modified: 10-MAY-02