Implement session serialization.