Implementing Resumable Sessions

One benefit provided by sessions is that they enable you to implement activities that can be suspended for a while and then resumed later when the user is ready to continue. This is a common thing to do with long-running games that users may play over the course of several days. Resumable sessions are also useful for presenting an activity in discrete segments: The user completes the activity one piece at a time, but can break off at any point and continue later. If you’re asking users to complete a lengthy survey, for example, you can make the experience more palatable by not requiring that the entire thing be completed in a single sitting. The user who is interrupted or needs to do something else while answering ...

Get MySQL and Perl for the Web now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.