Till it is terminated :)
Typically the client (which initiated the session) would terminate the session. In Gx, Gy, 4006 etc, CCR-T would be used to terminate. But server can also decide to terminate by sending ASR. But unlike a Diameter connection which is between two peers and failures can be detected by TCP or through Diameter watchdog, it is not easy to detect client or server failures. So a server may have a time-out to kill inactive sessions. In some applications (Gx. Gy), Reauth requests are used to force client to respond, so if RAR fails, server may initiate termination.
Note that Diameter sessions may live over long periods - say, you are not mobile and are running apps on your phone. Corresponding Gx or Gy sessions will persist for hours.