1. A method for preventing timeout, comprising: initializing an application for execution; initializing a client state with a refresh attribute, said refresh attribute specifying a time interval for posting state refresh requests; and responsive to said state refresh request from said client, returning to said client a refreshed application state selectively including a refresh attribute while said application is executing and not including said refresh attribute upon said application completing said execution or going into an error state.