Add functionality to persist session data serialized