Add mapping for saving/recovering session.

See: http://stackoverflow.com/a/1416584