Session expiration timeout as Windows Authenticated user on IIS

How to set session expiration timeout, if the user is authenticated with Windows Authentication on IIS? This session type expire somehow randomly - between 5-60 minutes. I already tried to set it within web.config but it doesn’t have the desired result. Is there any similar way, how to handle this as in appsettings.json parameter CookieExpirationMinutes ?

web.config
.....
<configuration>
<system.web>
	<sessionState timeout="2" />
</system.web>
</configuration>

At the moment we don’t have a solution to this problem.