Piwik auto logoff

Can anyone help me on how to logout automatically when the logged on user is inactive after n number of minutes. Currently user session is active for N number of days. Remember me is not selected.