<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/CardSession/Event/sessionInvalidated(reason:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "s:7CoreNFC11CardSessionC5EventO18sessionInvalidatedyAeC5ErrorO_tcAEmF"
  },
  "title" : "CardSession.Event.sessionInvalidated(reason:)"
}
-->

# CardSession.Event.sessionInvalidated(reason:)

The session became invalid.

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

## Parameters

`reason`

The reason the session became invalid.

## Discussion

This is the last event produced by the event stream before the stream finishes. The reason can be any [`CardSession.Error`](/documentation/CoreNFC/CardSession/Error) except [`CardSession.Error.transmissionError`](/documentation/CoreNFC/CardSession/Error/transmissionError).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)