Wrap data with session information in the post logic. Fixes retry bug.