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.
- Clearing State with Link Target Settings
Anywhere in APEX, when you define a target link to a page you can optionally configure a list of one or more page numbers whose session state values you want to clear. - Clearing State with a Page Process
To clear specific session state at the end of your page's submit processing, use the native Clear Session State page process.
Parent topic: Understanding Session State Management