Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Where is Unity SessionState stored?

Discussion in 'Editor & General Support' started by sankethhegde, Jun 12, 2023.

  1. sankethhegde


    Jun 9, 2023
    I came across Unity SessionState recently and it seems to fit my use case perfectly. However, I can't find documentation that describes where the key-value pairs in SessionState are actually stored. Are they simply persisted in memory through the editor, or are they stored on disk in some sort of local registry like PlayerPrefs?

    I'm assuming that they're stored in memory since they clear on exit, but want to make sure. Thanks.
  2. karl_jones


    Unity Technologies

    May 5, 2015
    Yes, they are stored in memory. I believe we store them in the c++ side so they can survive a domain reload.
    sankethhegde likes this.