In the reservation process, there is a navigation bar to indicate which steps (search result, room rate, guest info) the user pass through. When user refreshes the page or comes back to reservation process from other module, the page is reloaded, at that moment, all data are gone.
A mechanism is built to restore those data from server session. The logic is straight forward.
Once a reservation RPC is call, such as search for hotel, the user's input object and search result object are saved into server Http session. If for particular page, the data to render the page is not available, a session back up RPC is invoked to retrieve the data for that page from the server. If data still not available, then redirect to home page, otherwise render the page with retrieved the data.
Change History:
Author: Michael Wang, initial draft
No comments:
Post a Comment