Custom session management

At the moment, it takes 30 mins for the session to be ended automatically. However, in some cases, less time is required and some actions needs to be done. It would be great that there is a custom session management similar to the custom authentication.

Many thanks