---
title: URLCredential.Persistence.forSession
framework: foundation
role: symbol
role_heading: Case
path: foundation/urlcredential/persistence-swift.enum/forsession
---

# URLCredential.Persistence.forSession

The credential should be stored only for this session.

## Declaration

```swift
case forSession
```

## See Also

### Persistence strategies

- [URLCredential.Persistence.none](foundation/urlcredential/persistence-swift.enum/none.md)
- [URLCredential.Persistence.permanent](foundation/urlcredential/persistence-swift.enum/permanent.md)
- [URLCredential.Persistence.synchronizable](foundation/urlcredential/persistence-swift.enum/synchronizable.md)
