Removing Old Sessions
Sessions that have been idle for a configured period of time are removed from the Activity database after a configured amount of time. The scan and removal operations occur as background processes and do not interrupt transaction processing.
During typical event processing, sessions are updated to a closed status after a stop-accounting message is handled, and are deleted from the Activity
database. However, sometimes during rating, a STOP accounting message or a Credit-Control-Request (CCR) termination message might not be received, for example, when an error occurs with
the GGSN. To ensure that the Activity database does not fill up with old sessions, the Task Manager scans the
database at a configured interval to search for any sessions that have been idle for longer than a configured period of time. It uses the last timestamp on the session object to calculate
the elapsed amount of time and compares the value to the session timeout value defined with the system configuration question: Global:How long after the last RAR retry should the
session be torn down?
. The idle time is reset every time a session is reauthorized. All sessions idle for longer than the configured number of seconds are considered expired.
In such cases, the Task Manager sends a request to MATRIXX Charging Application to remove the session. The default session expiration time is 2 days (172,800
seconds).