Fix type coercion of session.expiry_minutes.