Session Expired sample

This page demonstrates how to detect and handle the case when the server is reporting that a session has expired.

It requires ColdFusion scripting enabled on the server.

The list of cities on the right side of the states is loaded by the 'dsCities' XMLDataSet using a server page that receives the state name as a parameter.
However, this page throws a session expired message after five requests (five clicks on the states), so the "expired" state for that spry:region is going to be displayed.

By default, XMLDataSet looks for "session expired" message in the text response that comes from the server or in the XML-formatted response. If such a message is found, the "expired" state is set for all the spry:regions that depend on the current DataSet.



Loading cities..

What is the response required from the server in order for XMLDataSet to detect "session expired" state?