---
title: prefersEphemeralWebBrowserSession
framework: authenticationservices
role: symbol
role_heading: Instance Property
path: authenticationservices/aswebauthenticationsession/prefersephemeralwebbrowsersession
---

# prefersEphemeralWebBrowserSession

A Boolean value that indicates whether the session should ask the browser for a private authentication session.

## Declaration

```swift
var prefersEphemeralWebBrowserSession: Bool { get set }
```

## Mentioned in

Authenticating a User Through a Web Service

## Discussion

Discussion Set prefersEphemeralWebBrowserSession to true to request that the browser doesn’t share cookies or other browsing data between the authentication session and the user’s normal browser session. Safari always respects the request. In macOS, someone can choose a different default browser that might or might not respect the request. The value of this property is false by default. Set this property before you call start(). Otherwise it has no effect.
