<div class='sourceset sourceset-android'>Android</div>

```kotlin
public var AndroidComposeTestRule<*, *>.session: Session?
```

The XR [Session](/jetpack-compose/androidx.xr.compose/compose-testing/properties/session) for the current `AndroidComposeTestRule`.

This will be null until the value is set or `LocalSession.current` is accessed in compose, after
which the value will be non-null and return the current [Session](/jetpack-compose/androidx.xr.compose/compose-testing/properties/session). Setting this value after
calling `setContent` will not change the Session that is used for that content block. Setting the
value to null will indicate that the default test Session should be used.