Explicitly call to_hash on the session