When do _Sessions change in value?

Is there any situation where the field properties of _Session change?
Or is a _Session the same from the time it’s created until it’s destroyed?

Right now I’m writing custom cache invalidation logic comparing the client’s cached Session to the DB’s Session.
The way it’s written right now assumes that Session never changes, which could cause huge bugs if the assumption is wrong.

The Parse session expires after 1 year I think if that’s what you’re asking.

There is some error handling that can catch this if it expires where you can logout and log back in that user to refresh the session.

@fjtoz , also the default 1 year session expiration can be changed with a parse server option.

1 Like

A situation when the session changes is when the user clears local storage manually. But I haven’t seen a situation when a session is edited.