What are the definitions of each?
- Permanent Session Property: Meant to persist across multiple sessions for a given user. They typically store relevant user-specific information across sessions, such as user preferences, authentication status, or user IDs. Once a permanent session property is set, it will be associated with all future sessions of that user until it’s explicitly removed or updated.
- Temporary Session Property: Specific to a single-user session. They store only relevant information to the session, such as the user’s current in-app location, a session-specific identifier, or any other session-specific data. These properties do not persist once the session ends and will not be available in future sessions unless explicitly set again.
Temporary Session properties last for the individual user session, whereas permanent session properties exist in every session until explicitly removed.