#### [Board](https://docs.dev.board.fun/unity/api/index.html "index")

### [Board.Session](https://docs.dev.board.fun/unity/api/Board.Session.html "Board\.Session"). [BoardSessionPlayer](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board\.Session\.BoardSessionPlayer")

## BoardSessionPlayer.sessionId Property

Gets the player’s unique identifier in the current session.

```
public int sessionId { get; }
```

#### Property Value

[System.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 "System\.Int32")

### Remarks

This identifier persists for the duration of a game session including when a save game is loaded. It should be used for identifying a player within a saved game.

Note: The [playerId](https://docs.dev.board.fun/unity/api/BoardPlayer.playerId.html "Board\.Core\.BoardPlayer\.playerId") may change if a player is replaced within a game session, but the [sessionId](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.sessionId.html "Board\.Session\.BoardSessionPlayer\.sessionId") will remain constant. An example of such a scenario is when a save game is loaded and a profile associated with the save game no longer exists. A [Guest](https://docs.dev.board.fun/unity/api/BoardPlayerType.md#Board.Core.BoardPlayerType.Guest "Board\.Core\.BoardPlayerType\.Guest") will then fill the slot and inherit the [sessionId](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.sessionId.html "Board\.Session\.BoardSessionPlayer\.sessionId") with a different [playerId](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.playerId.html "Board\.Session\.BoardSessionPlayer\.playerId").
