Session timeout setting

I have done the following in order to let the session expired if it is idle over 30 min

in app.properties

cuba.userSessionExpirationTimeoutSec = 1800
cuba.web.uiHeartbeatIntervalSec = 0

in web-app.properties
cuba.httpSessionExpirationTimeoutSec = 1800
cuba.web.closeIdleHttpSessions = true

Is there anything wrong here as it’s not working?