[android-components](../index.md) / [mozilla.components.browser.session.ext](index.md) / [toTabSessionState](./to-tab-session-state.md)

# toTabSessionState

`fun `[`Session`](../mozilla.components.browser.session/-session/index.md)`.toTabSessionState(): `[`TabSessionState`](../mozilla.components.browser.state.state/-tab-session-state/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/session/src/main/java/mozilla/components/browser/session/ext/SessionExtensions.kt#L19)

Create a matching [TabSessionState](../mozilla.components.browser.state.state/-tab-session-state/index.md) from a [Session](../mozilla.components.browser.session/-session/index.md).

