Do we have any flexibility to configure the user visit/session timeout according to the application's actual timeout instead of 30 minutes?
As per the documentation, a user session ends in one of the following ways:
Can we use the same function to configure a custom timeout along with the end user sessions automatically when the user logs out?
I don't know any option to configure globally this parameter in Dynatrace. If you want overwrite session ending with dtrum.endSession(), developer will have to put this peace of code into js code on website. Then conditions that will execute it can be defined as you need but it might be complicated to cover all scenarios.