8.5.5 Clearing Session State

The APEX engine clears session state values for a user session when it ends.

This includes page items, collections, and temporary files. The cleanup happens when the user signs out of the app, or when they are idle long enough to trigger a session timeout. There are also two declarative ways to clear selective session state values during the session.