Kibana doesn't redirect to login screen after session timeout until I interact

I want kinbana to redirect to login page when session times out!

opendistro_security.cookie.ttl: 1800000
opendistro_security.session.ttl: 60000

i have kept these, so after 60 secs kibana’s session should time out and it should redirect to login page but it only happens when I interact with kibana i.e. update or change something or press a button.