---
title: "CardSession.Event.sessionInvalidated(reason:)"
framework: corenfc
role: symbol
role_heading: Case
path: "corenfc/cardsession/event/sessioninvalidated(reason:)"
---

# CardSession.Event.sessionInvalidated(reason:)

The session became invalid.

## Declaration

```swift
case sessionInvalidated(reason: CardSession.Error)
```

## Parameters

- `reason`: The reason the session became invalid.

## Discussion

Discussion This is the last event produced by the event stream before the stream finishes. The reason can be any CardSession.Error except CardSession.Error.transmissionError.

## See Also

### Events

- [CardSession.Event.sessionStarted](corenfc/cardsession/event/sessionstarted.md)
- [CardSession.Event.readerDetected](corenfc/cardsession/event/readerdetected.md)
- [CardSession.Event.received(_:)](corenfc/cardsession/event/received(_:).md)
- [CardSession.APDU](corenfc/cardsession/apdu.md)
- [CardSession.Event.readerDeselected](corenfc/cardsession/event/readerdeselected.md)
